Skip to content

Commit

Permalink
Fix: Request headers with split_cookies enabled (#3065)
Browse files Browse the repository at this point in the history
  • Loading branch information
PinXo authored and andrewkroh committed Dec 15, 2016
1 parent 241df11 commit 7502f53
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packetbeat/protos/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,8 @@ func (http *httpPlugin) collectHeaders(m *message) interface{} {
if strings.ToLower(name) == "content-length" {
continue
}
if http.splitCookie {
if name == cookie {
hdrs[name] = splitCookiesHeader(string(value))
}
if http.splitCookie && name == cookie {
hdrs[name] = splitCookiesHeader(string(value))
} else {
hdrs[name] = value
}
Expand Down

0 comments on commit 7502f53

Please sign in to comment.