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-b9f4589650daunstable
parent
c09dc40f40
commit
6f23487daa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue