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
{{ message }}
Repository navigation
Zlib::BufError in case of empty body response with Content-Encoding and auto_inflate use #624
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
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[/+]on 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.
Activity
[-]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[/+]woutdegeyter commentedon Nov 10, 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?
tarcieri commentedon Nov 10, 2020
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.