Skip to content

Commit

Permalink
Clear cookies before setting
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmundxia committed Sep 11, 2024
1 parent 65e989e commit 439995e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion header.go
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ func (h *RequestHeader) setSpecialHeader(key, value []byte) bool {
return true
case caseInsensitiveCompare(strCookie, key):
h.collectCookies()
h.cookies = parseRequestCookies(h.cookies, value)
h.cookies = parseRequestCookies(make([]argsKV, 0), value)
return true
}
case 't':
Expand Down

0 comments on commit 439995e

Please sign in to comment.