diff --git a/lib/rex/proto/http/packet.rb b/lib/rex/proto/http/packet.rb index d651d3b8da..f064f839e8 100644 --- a/lib/rex/proto/http/packet.rb +++ b/lib/rex/proto/http/packet.rb @@ -274,13 +274,13 @@ protected connection = self.headers['Connection'] comp_on_close = false - if (connection and connection == 'close') + if (connection and connection == 'close'.downcase) comp_on_close = true end # Change states to processing the body if we have a content length or # the connection type is close. - if ((self.body_bytes_left > 0) or (comp_on_close) or self.transfer_chunked) + if ((self.body_bytes_left > 0) or self.transfer_chunked) self.state = ParseState::ProcessingBody else self.state = ParseState::Completed