httpx 0.14.2 → 0.14.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes/0_14_3.md +5 -0
- data/lib/httpx/connection/http1.rb +7 -2
- data/lib/httpx/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 716a91d8937fe675798bd8ad275cf5944616069149f2ace7b8c04c42c4cfeb19
|
4
|
+
data.tar.gz: cb76bc4343b18a30e1ffb093885e899b7b0cc9c70f40e5b461f2de4d4cce89f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 789cb7389ada8841232580200950c0066e30071ae120323fbb2b4646ae69cf43422c8e181aa02d2820d315c0a4a839a4635d584f4a57218e30f1c66f07cbcb80
|
7
|
+
data.tar.gz: 3815634b93c035a445557b4ae8718b985bbc8ee4776921cba4ee50fdb58dd31769e3f25aaa051f59df8aa96a0ab69a281e5a3ce7b013d762aa258f807afc74b7
|
@@ -80,7 +80,6 @@ module HTTPX
|
|
80
80
|
break if idx >= concurrent_requests_limit
|
81
81
|
next if request.state == :done
|
82
82
|
|
83
|
-
request.headers["connection"] ||= request.options.persistent || idx < requests_limit - 1 ? "keep-alive" : "close"
|
84
83
|
handle(request)
|
85
84
|
end
|
86
85
|
end
|
@@ -259,9 +258,15 @@ module HTTPX
|
|
259
258
|
request.chunk!
|
260
259
|
end
|
261
260
|
|
261
|
+
connection = if request.options.persistent || request != @requests[-1]
|
262
|
+
"keep-alive"
|
263
|
+
else
|
264
|
+
"close"
|
265
|
+
end
|
266
|
+
|
262
267
|
{
|
263
268
|
"host" => (request.headers["host"] || request.authority),
|
264
|
-
"connection" =>
|
269
|
+
"connection" => connection,
|
265
270
|
}
|
266
271
|
end
|
267
272
|
|
data/lib/httpx/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-2-next
|
@@ -65,6 +65,7 @@ extra_rdoc_files:
|
|
65
65
|
- doc/release_notes/0_14_0.md
|
66
66
|
- doc/release_notes/0_14_1.md
|
67
67
|
- doc/release_notes/0_14_2.md
|
68
|
+
- doc/release_notes/0_14_3.md
|
68
69
|
- doc/release_notes/0_1_0.md
|
69
70
|
- doc/release_notes/0_2_0.md
|
70
71
|
- doc/release_notes/0_2_1.md
|
@@ -109,6 +110,7 @@ files:
|
|
109
110
|
- doc/release_notes/0_14_0.md
|
110
111
|
- doc/release_notes/0_14_1.md
|
111
112
|
- doc/release_notes/0_14_2.md
|
113
|
+
- doc/release_notes/0_14_3.md
|
112
114
|
- doc/release_notes/0_1_0.md
|
113
115
|
- doc/release_notes/0_2_0.md
|
114
116
|
- doc/release_notes/0_2_1.md
|