Commit ebbcfef9 authored by liugaoling's avatar liugaoling

authorization

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