Commit 9df754fa authored by liugaoling's avatar liugaoling

authorization

parent fc791b35
......@@ -73,7 +73,7 @@ func HttpAuth(authReqInfo *authz.AuthRequestInfo) bool {
body, _ := ioutil.ReadAll(resp.Body)
if resp.StatusCode == 200 {
return true
return bool(body)
}
fmt.Println(string(body))
return false
......
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