response: propagate EOFError on remote errors
commita942f4f35af6d2764f05c3f76186b383142f7d3b
authorEric Wong <normalperson@yhbt.net>
Wed, 26 Sep 2012 01:04:37 +0000 (25 18:04 -0700)
committerEric Wong <normalperson@yhbt.net>
Wed, 26 Sep 2012 01:05:24 +0000 (25 18:05 -0700)
treef83d350bad66a98d173c3fe8533bdcdc48b7d811
parent051bbf04a932833e0a5f2857005885ac163a353e
response: propagate EOFError on remote errors

When proxying remote requests, EOFError may get incorrectly
discarded when a the remote server sets the Content-Length:
header _and_ Connection:close to disconnect the connection.

We will now raise errors correctly when Connection:close
is give but we have not yet read the expected Content-Length.
lib/kcar/response.rb
test/test_response.rb