Skip to content

Commit

Permalink
Use Put to set the body content field instead of an accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Martin committed Dec 21, 2018
1 parent 64ea13a commit 9ac91f5
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 @@ -629,7 +629,7 @@ func (http *httpPlugin) collectHeaders(m *message) interface{} {

func (http *httpPlugin) setBody(result common.MapStr, m *message) {
if m.sendBody && len(m.body) > 0 {
result["body.content"] = string(m.body)
result.Put("body.content", string(m.body))
}
}

Expand Down

0 comments on commit 9ac91f5

Please sign in to comment.