Commit 9ebeebf7 authored by root's avatar root
parents 8dd98d60 5a2b6bfa
......@@ -68,8 +68,8 @@ func HttpAuth(authReqInfo authz.AuthRequestInfo) bool {
client := &http.Client{}
authUrl := "http://47.57.4.97/c3ce/dockerimage/authorization"
bytesData, _ := json.Marshal(authReqInfo)
fmt.Println(bytesData)
req, _ := http.NewRequest("POST", authUrl, bytes.NewReader(bytesData))
fmt.Println(string(bytesData))
req, _ := http.NewRequest("POST", authUrl, bytesData)
resp, _ := client.Do(req)
defer resp.Body.Close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment