1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-25 17:30:19 +00:00

Merge pull request #389 from 1fei/master

Update httplib.go
This commit is contained in:
astaxie
2013-12-19 01:10:08 -08:00

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
}