forward-proxy 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/forward_proxy/server.rb +3 -2
- data/lib/forward_proxy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ebb420c1a9dd1e13e77b0884f0349e3bb9f78150a9e00004bb6db86a95c3766d
|
|
4
|
+
data.tar.gz: 3186ebd3f6f1beadc466aeb81f1f427f43f62960dab3680ce9be8ed1efd5e0d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5fc1d9053270cda730bd7ca85a5e08fa4a42105fe8a2a7d17cbfa0ac8b29d437a6dde6c5d884b336a5295c1ebaa842bc5c0e15cded11f309148e5253f1a7fd12
|
|
7
|
+
data.tar.gz: ee39eb4f082d8ba7e4bd7f7d0bf5233b763e0ce6ff787b531a549e8b3ab4caf1fd03831c71244a73e0ab570988e13762373d437bd42632effafcb4f783eebacc
|
data/CHANGELOG.md
CHANGED
data/lib/forward_proxy/server.rb
CHANGED
|
@@ -165,7 +165,6 @@ module ForwardProxy
|
|
|
165
165
|
# handling large files or wish to implement a progress bar you can
|
|
166
166
|
# instead stream the body directly to an IO.
|
|
167
167
|
resp.read_body do |chunk|
|
|
168
|
-
client_conn << chunk
|
|
169
168
|
# The following comments are taken from:
|
|
170
169
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding#directives
|
|
171
170
|
|
|
@@ -175,7 +174,9 @@ module ForwardProxy
|
|
|
175
174
|
# '\r\n'. The terminating chunk is a regular chunk, with the exception that its length
|
|
176
175
|
# is zero. It is followed by the trailer, which consists of a (possibly empty) sequence of
|
|
177
176
|
# header fields.
|
|
178
|
-
client_conn << HTTP_EOP if resp['Transfer-Encoding'] == 'chunked'
|
|
177
|
+
client_conn << chunk.bytesize.to_s(16) + HTTP_EOP if resp['Transfer-Encoding'] == 'chunked'
|
|
178
|
+
|
|
179
|
+
client_conn << chunk
|
|
179
180
|
end
|
|
180
181
|
end
|
|
181
182
|
end
|