Skip to content

Commit

Permalink
don't drop encoding checkgi
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Nichols <snichols@vmware.com>
  • Loading branch information
Scott Nichols committed May 11, 2020
1 parent bc04c59 commit 18e0cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/protocol/http/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (p *Protocol) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
}

m := NewMessageFromHttpRequest(req)
if m == nil {
if m == nil || m.ReadEncoding() == binding.EncodingUnknown {
p.incoming <- msgErr{msg: nil, err: binding.ErrUnknownEncoding}
return // if there was no message, return.
}
Expand Down

0 comments on commit 18e0cf8

Please sign in to comment.