httpx 0.10.1 → 0.10.2

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: ed5ebccf22cf5c4719a81db15ee29a7d05e08fa43bd83b14c3b2682c083615be
4
- data.tar.gz: 2befada7d0c17d0c20d0afce44fc0a9d3192ffb2bb311322ee171107d285d050
3
+ metadata.gz: 2dee09976c993c9a7cb840410ce8758e68faaae6d13d1101a0cf207b59eebdd4
4
+ data.tar.gz: 444e4c0373f4c3faed53b1b2238e338aaac70af61b24657b2b79ce3f509bffde
5
5
  SHA512:
6
- metadata.gz: 9abffdd09d11f8c22c51f38064525d6d5250fe1e72a2e369f79c98e7d02ee6fe7a7442ac76758bf60cbc87eabe51a3faa30a675f4a30cb83a01e09aa98334d0a
7
- data.tar.gz: 9c0706ac930dc0e082845795784a5007d0cd9bb25f4a81435be6d8e081ba29528a0df05fc03713dc07615329944ca586e4df8386766c6b5ff440c96d90dc472e
6
+ metadata.gz: 4d113f172d81c88f155b0bc00c1a42c76fc01c6eed31df693c2ed5c43190e4887c6331492b33acb3104c16de49ec34023fd3c22eb199bfa363392af5fd8ce414
7
+ data.tar.gz: defb46daafc3fba4f13e765531b61892e5fedd96de9ffdd4ab0e10132ac4df3a5e99e94baf032578cef2919c29069ac3c080c25e56b93907e8451c573a245972
@@ -29,9 +29,7 @@ From now on, both headers and the responnse payload will also appear, so expecte
29
29
  * HTTP/2 421 responses will now correctly migrate the connection and pendign requests to HTTP/1.1 (a hanging loop was being caused);
30
30
  * HTTP/2 connection failed with a GOAWAY settings timeout will now return error responses (instead of hanging indefinitely);
31
31
  * Non-IP proxy name-resolving errors will now move on to the next available proxy in the list (instead of hanging indefinitely);
32
- * Non-IP DNS resolve errors for `native` and `https` variannts will now return the appropriate error response (instead of hanging indefinitely);
33
- *
34
-
32
+ * Non-IP DNS resolve errors for `native` and `https` variants will now return the appropriate error response (instead of hanging indefinitely);
35
33
 
36
34
  ## Chore
37
35
 
@@ -0,0 +1,5 @@
1
+ # 0.10.2
2
+
3
+ ## Bugfixes
4
+
5
+ Support for nested params in multipart forms introduced a bug where top-level params weren't being spread out correctly in the request body.
@@ -24,7 +24,7 @@ module HTTPX
24
24
 
25
25
  def initialize(form)
26
26
  @raw = if multipart?(form)
27
- HTTP::FormData::Multipart.new(Hash[*form.map { |k, v| Transcoder.enum_for(:normalize_keys, k, v).to_a }])
27
+ HTTP::FormData::Multipart.new(Hash[form.flat_map { |k, v| Transcoder.enum_for(:normalize_keys, k, v).to_a }])
28
28
  else
29
29
  HTTP::FormData::Urlencoded.new(form, :encoder => Transcoder::Form.method(:encode))
30
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTPX
4
- VERSION = "0.10.1"
4
+ VERSION = "0.10.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
@@ -74,6 +74,7 @@ extra_rdoc_files:
74
74
  - doc/release_notes/0_6_1.md
75
75
  - doc/release_notes/0_7_0.md
76
76
  - doc/release_notes/0_6_0.md
77
+ - doc/release_notes/0_10_2.md
77
78
  - doc/release_notes/0_8_2.md
78
79
  - doc/release_notes/0_6_4.md
79
80
  - doc/release_notes/0_9_0.md
@@ -105,6 +106,7 @@ files:
105
106
  - doc/release_notes/0_0_5.md
106
107
  - doc/release_notes/0_10_0.md
107
108
  - doc/release_notes/0_10_1.md
109
+ - doc/release_notes/0_10_2.md
108
110
  - doc/release_notes/0_1_0.md
109
111
  - doc/release_notes/0_2_0.md
110
112
  - doc/release_notes/0_2_1.md