async-http 0.36.0 → 0.36.1

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
  SHA256:
3
- metadata.gz: b6e1e7f6525a09868ce9ad825b3b58b7b64f32c5df8ed580c8f77d575cb709f4
4
- data.tar.gz: dc532ce80d64d36907a8436d22acc6be3cb0d38833b0bd99cdaf1223a1d0248b
3
+ metadata.gz: d234b47c1bb847f4c52397ca296339f9a37e938b9ad23aec8ab4f75e9db59a82
4
+ data.tar.gz: 792a67ff040d1ab179ae6ca484a10307c2715ca316d1b516961943e9f4b8acdb
5
5
  SHA512:
6
- metadata.gz: 84dd9b7d698be6596c5658be91e05cfaa18bb17125973300e330291d05bb85fa1b3a7084a099dd7d1334d520dae5e45f71791d8c40402f6424e666b1b17c7c7e
7
- data.tar.gz: 878de7d6275b62fbb1a63f3317fefaaa2e3d689f3d723f8a4d4dbe75a770503c8d52d3855ce33bb07d07a21aae146f6caf2bfb14afa2d67f8b4ae6da7bdc9d9c
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
- @input = Body::Writable.new
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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.36.0"
23
+ VERSION = "0.36.1"
24
24
  end
25
25
  end
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.0
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-29 00:00:00.000000000 Z
11
+ date: 2018-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async