async-http 0.36.0 → 0.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/async/http/protocol/http2/request.rb +7 -3
- data/lib/async/http/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d234b47c1bb847f4c52397ca296339f9a37e938b9ad23aec8ab4f75e9db59a82
|
4
|
+
data.tar.gz: 792a67ff040d1ab179ae6ca484a10307c2715ca316d1b516961943e9f4b8acdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5359c26dde5982da76cd8152475bad08e95c36a6151cccd6195862a05198b0b82c240749587721358fd2050f27cbc76e008af0b731c0145271a2ac728eaaddea
|
7
|
+
data.tar.gz: 42a6f6b9f5d801160bf5eb5fc4a5467fea15656318194a600e7a92bd979f8a646bdfc11cd36d645e76cb3ff8fc2b1a1c15fb33d2c1623dfc92779ccd96751d52
|
@@ -27,10 +27,9 @@ module Async
|
|
27
27
|
module HTTP2
|
28
28
|
class Request < Protocol::Request
|
29
29
|
def initialize(protocol, stream_id)
|
30
|
-
|
31
|
-
|
32
|
-
super(nil, nil, nil, nil, VERSION, Headers.new, @input)
|
30
|
+
super(nil, nil, nil, nil, VERSION, Headers.new)
|
33
31
|
|
32
|
+
@input = nil
|
34
33
|
@protocol = protocol
|
35
34
|
@stream = Stream.new(self, protocol, stream_id)
|
36
35
|
end
|
@@ -64,6 +63,11 @@ module Async
|
|
64
63
|
end
|
65
64
|
end
|
66
65
|
|
66
|
+
# We only construct the input/body if data is coming.
|
67
|
+
unless end_stream
|
68
|
+
@body = @input = Body::Writable.new
|
69
|
+
end
|
70
|
+
|
67
71
|
# We are ready for processing:
|
68
72
|
@protocol.requests.enqueue self
|
69
73
|
end
|
data/lib/async/http/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.36.
|
4
|
+
version: 0.36.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|