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
unstable
HD Moore 2007-09-09 22:27:27 +00:00
parent c09dc40f40
commit 6f23487daa
1 changed files with 2 additions and 2 deletions

View File

@ -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