mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-05 00:02:38 -04:00
bugfix: do not reset content-length for compressed body if the body is streamable (not only chunked)
This commit is contained in:
parent
7a60346bf7
commit
b73882210f
@ -66,7 +66,7 @@ module HTTPX
|
||||
|
||||
@body = Encoder.new(@body, options.encodings.registry(encoding).deflater)
|
||||
end
|
||||
@headers["content-length"] = @body.bytesize unless chunked?
|
||||
@headers["content-length"] = @body.bytesize unless unbounded_body?
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user