Commit 6da3d658 authored by 张亚松's avatar 张亚松

fix bug

parent 9eba25a6
......@@ -43,7 +43,7 @@ func Proxy(c *gin.Context) {
apaasToken = c.GetHeader("Authorization")
}
if strings.HasPrefix("apaasToken", "Bearer ") {
if strings.HasPrefix(apaasToken, "Bearer ") {
apaasToken = strings.TrimPrefix(apaasToken, "Bearer ")
}
......
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