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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a70f7009ba5b2069a4d05afe8da0c7d534e4b23f
4
- data.tar.gz: 9745f755aee6277fdb2162ce8f7e087415464048
3
+ metadata.gz: d206af3b1dae3d8a6a96a394e4c5ef33d73ba8f8
4
+ data.tar.gz: 3c0c563b8718b9c9d69e281f41002689edf5d08e
5
5
  SHA512:
6
- metadata.gz: d763d59eebc9999b3b82c95b782630849c10e86a77dd6e41829c4d7618599cbdb91f78c9ce7994d5d2e0e40ea131cc9b00bb955c0ef6e1eed685d8d023d06a46
7
- data.tar.gz: c1d981a77a58e63097403fbe58a82eb25340ea656ff55e9cec0518c497fc940b273aef022a06bceaa5738d9cd2e6dd20023271376b6176c7767aa6d3c16b9cdc
6
+ metadata.gz: a04401b4906f7a99c52e0c5bbd4e8b2aec5603a1e2793b414200a0daeeac3a05b7a45d85c486011fba9beb85f89e6e143b83e97631c025d4a6a635b49b7abdab
7
+ data.tar.gz: fb4028f07898183045a04586d61cbcb3a98aeecca1bc86ea043b8f645be5c7427a1d768c470e6a33bc1c6f0fe34f22769730872baf1ee41f3b5c531bfe3ce176
@@ -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
- headers['Content-Length'] = body.length.to_s
125
+ body = wio.string
126
126
  end
127
127
 
128
128
  [status, headers, [body]]
data/lib/wedge/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.52'
2
+ VERSION = '0.1.53'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wedge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.52
4
+ version: 0.1.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj