Skip to content

Commit

Permalink
Use m.ContentType
Browse files Browse the repository at this point in the history
  • Loading branch information
monicasarbu committed Mar 31, 2015
1 parent e0d7439 commit 0a13f16
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protos/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,7 @@ func (http *Http) cutMessageBody(m *HttpMessage) []byte {
raw_msg_cut = m.Raw[:m.bodyOffset]

// add body
contentType, ok := m.Headers["content-type"]
if ok && (len(contentType) == 0 || http.shouldIncludeInBody(contentType)) {
if len(m.ContentType) == 0 || http.shouldIncludeInBody(m.ContentType) {
if len(m.chunked_body) > 0 {
raw_msg_cut = append(raw_msg_cut, m.chunked_body...)
} else {
Expand Down

0 comments on commit 0a13f16

Please sign in to comment.