Skip to content

Commit

Permalink
Don't include body if the Content-Type is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Tudor Golubenco committed Sep 8, 2016
1 parent b4dcb32 commit e2754c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packetbeat/protos/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ func parseCookieValue(raw string) string {
func (http *HTTP) extractBody(m *message) []byte {
body := []byte{}

if len(m.ContentType) == 0 || http.shouldIncludeInBody(m.ContentType) {
if len(m.ContentType) > 0 && http.shouldIncludeInBody(m.ContentType) {
if len(m.chunkedBody) > 0 {
body = append(body, m.chunkedBody...)
} else {
Expand Down

0 comments on commit e2754c0

Please sign in to comment.