httprb / http

HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts
MIT License
3.01k stars 321 forks source link

Inflater handle empty streams #625

Closed LukaszMaslej closed 4 years ago

LukaszMaslej commented 4 years ago

Hello, This prevents the issue of Zlib::BufError errors raised when reading by Inflater empty streams (should fix #624).

Thanks!

tarcieri commented 4 years ago

@LukaszMaslej seems like a reasonable enough workaround, although there are some RuboCop failures

tarcieri commented 4 years ago

The test failures appear to be unrelated. Thanks for the fix!