httplog 0.99.1 → 0.99.2

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: 04f8b802147c2e3feef23e52002cd36dfbd24b7f
4
- data.tar.gz: 4826d8585db9817054996dd0b4f9f6bdcebd6a7a
3
+ metadata.gz: eafcc7929f68b3ce46123ef8dc6df21cd869b9c9
4
+ data.tar.gz: e90cbd7ca93d606009848dc2a903294a77e96bff
5
5
  SHA512:
6
- metadata.gz: 2948b2216365799da61ece7891814da3fcb5db703704b24878dbf8fc23cad1ee9c877e773a80e353f971a8bf311aa5cddbb345631ae5bee761882a55c2fa1503
7
- data.tar.gz: 202b4b85870bc9a497951b1c5302571fef172daeab7c4927639e2b4c627ba1841b875167601f59dee7faf0a725def65de34ded2c362cc0aa0f47ebde8d33b64d
6
+ metadata.gz: 26e90de94f781439e7b703da5d6104d9ab4993aa07377245528add654e9712dcfd7f103a6d7a66a009d6c3bdbb40dd663943ae6e2f2e82e38635392f4582b167
7
+ data.tar.gz: 2021b5c083d71d457c6f3406ab1cd089a44e39d33f8837f5b8224eeb63564360756555b6c62baa0cd6724a2ee1756838f926fac20df5876f8a546425c3b39163
@@ -76,7 +76,7 @@ module HttpLog
76
76
  return
77
77
  end
78
78
 
79
- if encoding =~ /gzip/
79
+ if encoding =~ /gzip/ && body && !body.empty?
80
80
  sio = StringIO.new( body.to_s )
81
81
  gz = Zlib::GzipReader.new( sio )
82
82
  body = gz.read
@@ -1,4 +1,4 @@
1
1
  module HttpLog
2
- VERSION = "0.99.1"
2
+ VERSION = "0.99.2"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httplog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.1
4
+ version: 0.99.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thilo Rusche
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-01 00:00:00.000000000 Z
11
+ date: 2017-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec