mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
![]() The ignore_eof setting on HTTPResponse makes it so an EOFError is
raised when reading bodies with a defined Content-Length, if the
body read was truncated due to the socket be closed.
The ignore_eof setting on HTTP sets the values used in responses
that are created by the object.
For backwards compatibility, the default is for both settings is
true. However, unless you are specifically tested for and handling
truncated responses, it's a good idea to set ignore_eof to false so
that errors are raised for truncated responses, instead of those
errors silently being ignored.
Fixes [Bug #14972]
|
||
---|---|---|
.. | ||
backward.rb | ||
exceptions.rb | ||
generic_request.rb | ||
header.rb | ||
net-http.gemspec | ||
proxy_delta.rb | ||
request.rb | ||
requests.rb | ||
response.rb | ||
responses.rb | ||
status.rb |