segregate 0.5.2 → 0.5.3

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: 71d89f3c3e90e41fb84af4faeb638c55b1e57f42
4
- data.tar.gz: f0de163082142414642801e392f12c7d13448d38
3
+ metadata.gz: ff266c8c0244e7925758f63cdc7d21972e53dcbd
4
+ data.tar.gz: 964fd20d045508458e73cb2d17e8374a618a92a9
5
5
  SHA512:
6
- metadata.gz: 6996697e014269c5a661f51ad4dff60b6b11fbc400a849c18ac62987db430b5cba85b168f489cff1eaa7176c7cd1887ef3b1296bf10ab9cdb5d64797331eb4ce
7
- data.tar.gz: 2549fd7247b7acbf4c7d3f8823f3679c4eccc4675bfe23b7ddaf120b4d78f464cb912d9bb1afbf9d06d6eedaeb98d9f80e5f7eb4303bbfb1f11241801ddb01a5
6
+ metadata.gz: 55fe992782297d9c1836536f89098e5eed2a385b4e89c21539699eadd66cc96971aa287132d9725d3759ad46b9de2fc72df1b3f5973bfc8efb8fbcd0fd5d5fd3
7
+ data.tar.gz: 9a621f778945490b359127fbe34417bbbad5c69a5ca4218d6e1d4a2a00e6be4fb18df2366edc27654ed069999d0441eb16a7da964ee75fab60bcb1927c56b165
@@ -1,4 +1,4 @@
1
1
  class Segregate
2
- VERSION = "0.5.2".freeze
3
- DATE = "2014-02-10".freeze
2
+ VERSION = "0.5.3".freeze
3
+ DATE = "2014-02-12".freeze
4
4
  end
data/lib/segregate.rb CHANGED
@@ -218,7 +218,7 @@ class Segregate
218
218
 
219
219
  if headers_complete?
220
220
  @callback.on_headers_complete self if @callback.respond_to?(:on_headers_complete)
221
- unless headers['content-length'] || headers['transfer-encoding']
221
+ if headers['transfer-encoding'].nil? && (headers['content-length'] == "0" || headers['content-length'].nil?)
222
222
  @state.set :done
223
223
  end
224
224
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: segregate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Slaughter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-10 00:00:00.000000000 Z
11
+ date: 2014-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake