You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found edge case where making http request to one of the remote servers can raise Zlib::BufError.The case is about blank body returned by a server for 204 No Content together with header Content-Encoding: gzip .
Can be reproduced this way:
require'socket'server=TCPServer.new8000loopdoclient=server.acceptclient.puts<<-EOTHTTP/1.1 204 No ContentContent-Encoding: gzipContent-Type: application/json;charset=utf-8EOTclient.closeend
LukaszMaslej
changed the title
Zlib::BufError in case of empty body response with Content-Encode and auto_inflate use
Zlib::BufError in case of empty body response with Content-Encoding and auto_inflate use
Nov 9, 2020
@tarcieri thank you for merging the fix for this issue!
Could you tell me when we could expect a new httprb release (a new tag) so we could use this fix in our production environment?
Can talk with @ixti about it. I merged your PR but several tests recently started failing, in what appears to be something X.509 related. It would probably be best to get the test suite passing again before cutting another release.
Hi,
I found edge case where making http request to one of the remote servers can raise
Zlib::BufError
.The case is about blank body returned by a server for204 No Content
together with headerContent-Encoding: gzip
.Can be reproduced this way:
Call like:
raise an error
... /gems/http-5.0.0.pre3/lib/http/response/inflater.rb:19:in 'finish': buffer error (Zlib::BufError)
.The text was updated successfully, but these errors were encountered: