diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2019-12-16 23:20:42 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-12-16 23:20:42 +0900 |
| commit | 5105240b1e851410020b3b3f1a2bead7ffdd4291 (patch) | |
| tree | 2a51dd29300cc4041503b3260f117e0e81c9a099 /spec/ruby/core/kernel/shared/lambda.rb | |
| parent | d6fd39030d8b14eef117c1e5e265e0b769a9f4fd (diff) | |
lib/net/http/response.rb: support raw deflate correctly
Net::HTTP had used `Zlib::Inflate.new(32 + Zlib::MAX_WBITS)` for all
content encoding (deflate, zlib, and gzip).
But the argument `32 + Zlib::MAX_WBITS` means zlib and gzip decoding
with automatic header detection, so (raw) deflate compression had not
been supported.
This change makes it support raw deflate correctly by passing an
argument `-Zlib::MAX_WBITS` (which means raw deflate) to
`Zlib::Inflate.new`. All deflate-mode tests are fixed too.
[Bug #11268]
Diffstat (limited to 'spec/ruby/core/kernel/shared/lambda.rb')
0 files changed, 0 insertions, 0 deletions
