Update httplib.go
httplib针对的是客户端的http请求,所以应该用"Cookie",而不是"Set_Cookie"
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -90,7 +90,7 @@ func (b *BeegoHttpRequest) Header(key, value string) *BeegoHttpRequest { | ... | @@ -90,7 +90,7 @@ func (b *BeegoHttpRequest) Header(key, value string) *BeegoHttpRequest { |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | func (b *BeegoHttpRequest) SetCookie(cookie *http.Cookie) *BeegoHttpRequest { | 92 | func (b *BeegoHttpRequest) SetCookie(cookie *http.Cookie) *BeegoHttpRequest { |
| 93 | b.req.Header.Add("Set-Cookie", cookie.String()) | 93 | b.req.Header.Add("Cookie", cookie.String()) |
| 94 | return b | 94 | return b |
| 95 | } | 95 | } |
| 96 | 96 | ... | ... |
-
Please register or sign in to post a comment