diff --git a/header.go b/header.go index 85f9809..9f9c012 100644 --- a/header.go +++ b/header.go @@ -1254,9 +1254,8 @@ func (h *RequestHeader) peek(key []byte) []byte { case HeaderCookie: if h.cookiesCollected { return appendRequestCookieBytes(nil, h.cookies) - } else { - return peekArgBytes(h.h, key) } + return peekArgBytes(h.h, key) default: return peekArgBytes(h.h, key) }