async-http 0.36.2 → 0.36.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/http/body/deflate.rb +1 -3
- data/lib/async/http/body/inflate.rb +2 -4
- data/lib/async/http/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c623b2b96c4332233d21cdd8c2f1f663543b2df31187b31c3dc224072e78d5c7
|
4
|
+
data.tar.gz: 17cbbdb849ca0d071fbb69ffd04bb646bb5e3c2d6abfda8a80af42c8c188b0a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ff8d9aa99750b1785dd87f727abfa5dcd42e0167386617d4a28d9ff58ad6f824c49cc55f659fc57051e2bb1062e389e8ef15e3aa7e67301db9129702a7ea486
|
7
|
+
data.tar.gz: c21defad1a7ed2cd6382ee63554fe53c50f94ef9e9f1e2e356318cb55d4df5d30c2b0cc27f53f1931a65a493d1dd3f8472bc6ad88c34c1d9c630663a06279c81
|
@@ -88,7 +88,7 @@ module Async
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def read
|
91
|
-
return if @stream.
|
91
|
+
return if @stream.finished?
|
92
92
|
|
93
93
|
if chunk = super
|
94
94
|
@input_length += chunk.bytesize
|
@@ -103,8 +103,6 @@ module Async
|
|
103
103
|
|
104
104
|
@output_length += chunk.bytesize
|
105
105
|
|
106
|
-
@stream.close
|
107
|
-
|
108
106
|
return chunk.empty? ? nil : chunk
|
109
107
|
end
|
110
108
|
end
|
@@ -31,7 +31,7 @@ module Async
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def read
|
34
|
-
return if @stream.
|
34
|
+
return if @stream.finished?
|
35
35
|
|
36
36
|
if chunk = super
|
37
37
|
@input_length += chunk.bytesize
|
@@ -44,11 +44,9 @@ module Async
|
|
44
44
|
chunk = @stream.finish
|
45
45
|
|
46
46
|
@output_length += chunk.bytesize
|
47
|
-
|
48
|
-
@stream.close
|
49
47
|
end
|
50
48
|
|
51
|
-
if
|
49
|
+
if chunk.empty? and @stream.finished?
|
52
50
|
return nil
|
53
51
|
end
|
54
52
|
|
data/lib/async/http/version.rb
CHANGED