pretty_proxy 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pretty_proxy.rb +1 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53c916eb8a133fba2863121b82f713be339870d9
4
- data.tar.gz: 20203a8923d5fdf6a74a28f88fb9cd48ed29ec0a
3
+ metadata.gz: 5c71de1a7325089cea6ee46ebd45882e65119619
4
+ data.tar.gz: 79bff31288cc6c7723e338e59bf010319b8e2d42
5
5
  SHA512:
6
- metadata.gz: 3df53ebf6c8ddcff87a78488ca2d21f862017d5916c6daa7aad70cf242bfe17238b431c538baca7586c51ed55d04d8edb8e491f153ec5042c38d2b380741ca7a
7
- data.tar.gz: 9a5eb9afaa314dd26f3efa3e491431413aea0d1df5f08640f5e8a8e904992ba3560ccb312a7e5a2e8a6f791ab7e0f88d1179fa72e3c431cf01b84b444431fc6a
6
+ metadata.gz: be855fc2ac44bcb2e9cea9b7714288d5fc333e66863bd63deaa5133790d1c65e10bb5e602f53f7ae2c28314a92c9c785ca3c4d77666bf8fe4844ec19884044c6
7
+ data.tar.gz: e19ea8b24a83f2d20a87d25776da3d77997bab40f0ceb955995888e68f0243f50a25b90d4893096c67c3497b40c3c67a3b5197de8a623731e5bb5d2b0a41d188
data/lib/pretty_proxy.rb CHANGED
@@ -301,6 +301,7 @@ class PrettyProxy < Rack::Proxy
301
301
  when 'gzip' then page = Zlib::GzipReader.new(StringIO.new(page)).read
302
302
  when 'deflate' then page = Zlib::Inflate.inflate(page)
303
303
  when 'identity' then page = page
304
+ when nil then page = page
304
305
  else
305
306
  fail ProxyError, 'unknown content-encoding, only encodings known are gzip, deflate and identity'
306
307
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrique Becker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-16 00:00:00.000000000 Z
11
+ date: 2013-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri