Commit 10c5284b authored by liugaoling's avatar liugaoling

authorization

parent 753c8032
......@@ -70,7 +70,7 @@ func HttpAuth(authReqInfo authz.AuthRequestInfo) bool {
bytesData, _ := json.Marshal(authReqInfo)
fmt.Println(bytesData)
fmt.Println(authReqInfo)
req, _ := http.NewRequest("POST", authUrl, bytes.NewReader(authReqInfo))
req, _ := http.NewRequest("POST", authUrl, bytes.NewReader(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