From 6f23487daa659fb2a64f175ee54ab7e2dc1c8efb Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sun, 9 Sep 2007 22:27:27 +0000 Subject: [PATCH] Fixes #117. No longer treat connection: close as a stop-processing case git-svn-id: file:///home/svn/framework3/trunk@5090 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/proto/http/packet.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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