1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 14:10:54 +00:00

Update httplib.go

httplib针对的是客户端的http请求,所以应该用"Cookie",而不是"Set_Cookie"
This commit is contained in:
1fei 2013-12-19 16:29:46 +08:00
parent e481671814
commit 0269a66940

View File

@ -90,7 +90,7 @@ func (b *BeegoHttpRequest) Header(key, value string) *BeegoHttpRequest {
}
func (b *BeegoHttpRequest) SetCookie(cookie *http.Cookie) *BeegoHttpRequest {
b.req.Header.Add("Set-Cookie", cookie.String())
b.req.Header.Add("Cookie", cookie.String())
return b
}