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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5049a0cfb698c15800ea618a2775831183765f24ccb946c2adfb6b067c976c4d
4
- data.tar.gz: 498a626981251e0ffbff3dde9d63fcc57e0b3183d29fafbc1ecd921d3bfe8172
3
+ metadata.gz: 716a91d8937fe675798bd8ad275cf5944616069149f2ace7b8c04c42c4cfeb19
4
+ data.tar.gz: cb76bc4343b18a30e1ffb093885e899b7b0cc9c70f40e5b461f2de4d4cce89f6
5
5
  SHA512:
6
- metadata.gz: 6fb23f5a45bd521bf30c25b8e30af3b35e4359093a470fb29f9ab6c8f5d0f09674a08b28ba2c20f92c51fe46702f4f3751b855b6b31f202be01728f56273d6a2
7
- data.tar.gz: f64d1057e2483502dc3751a74489cfec0e7672d906f5901a81f98227c98ee907dc6be0b8d0ad7f4c4688546a2a7c22886f437807e28ba5b2a5e09c6b588de023
6
+ metadata.gz: 789cb7389ada8841232580200950c0066e30071ae120323fbb2b4646ae69cf43422c8e181aa02d2820d315c0a4a839a4635d584f4a57218e30f1c66f07cbcb80
7
+ data.tar.gz: 3815634b93c035a445557b4ae8718b985bbc8ee4776921cba4ee50fdb58dd31769e3f25aaa051f59df8aa96a0ab69a281e5a3ce7b013d762aa258f807afc74b7
@@ -0,0 +1,5 @@
1
+ # 0.14.3
2
+
3
+ ## Bugfixes
4
+
5
+ * fixed: HTTP/1 "connection: close" header was "leaking" into subsequent redirect follow, including HTTP/2 requests which would fail due to the invalid header.
@@ -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" => (request.headers["connection"] || (request.options.persistent ? "keep-alive" : "close")),
269
+ "connection" => connection,
265
270
  }
266
271
  end
267
272
 
data/lib/httpx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTPX
4
- VERSION = "0.14.2"
4
+ VERSION = "0.14.3"
5
5
  end
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.2
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-27 00:00:00.000000000 Z
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