wedge 0.1.52 → 0.1.53
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wedge/middleware.rb +2 -2
- data/lib/wedge/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d206af3b1dae3d8a6a96a394e4c5ef33d73ba8f8
|
4
|
+
data.tar.gz: 3c0c563b8718b9c9d69e281f41002689edf5d08e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a04401b4906f7a99c52e0c5bbd4e8b2aec5603a1e2793b414200a0daeeac3a05b7a45d85c486011fba9beb85f89e6e143b83e97631c025d4a6a635b49b7abdab
|
7
|
+
data.tar.gz: fb4028f07898183045a04586d61cbcb3a98aeecca1bc86ea043b8f645be5c7427a1d768c470e6a33bc1c6f0fe34f22769730872baf1ee41f3b5c531bfe3ce176
|
data/lib/wedge/middleware.rb
CHANGED
@@ -115,14 +115,14 @@ class Wedge
|
|
115
115
|
require 'zlib'
|
116
116
|
|
117
117
|
headers['Content-Encoding'] = 'gzip'
|
118
|
+
headers.delete 'Content-Length'
|
118
119
|
|
119
120
|
wio = StringIO.new("")
|
120
121
|
w_gz = Zlib::GzipWriter.new(wio)
|
121
122
|
w_gz.write(body.last.to_s)
|
122
123
|
w_gz.close
|
123
|
-
body = wio.string
|
124
124
|
|
125
|
-
|
125
|
+
body = wio.string
|
126
126
|
end
|
127
127
|
|
128
128
|
[status, headers, [body]]
|
data/lib/wedge/version.rb
CHANGED