rage-rb 1.22.0 → 1.22.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/CHANGELOG.md +6 -0
- data/lib/rage/params_parser.rb +3 -1
- data/lib/rage/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c18be377e162e14f77e7709fc573ff35cb9965796f9451af4e05baac5da095ca
|
|
4
|
+
data.tar.gz: 9d6193d3a72322f0d9edb702f512975451cac38d32a7505b943065222aa45115
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ceffe055ffce47aca8970ee09de970665532ff4551afcbd0bf5efb9e55a380762e0b135f889b92be1acd6ba77c3d77d9025616e3d99ee75a6bfb4ccec5fbd4e
|
|
7
|
+
data.tar.gz: d9052e5e4c78aaca8425b2b7ae60622d275273ff85b18304db0657007103845c720465e744e73b077a180ae00813959c30288f174b798ec26e9518aec9062da0
|
data/CHANGELOG.md
CHANGED
data/lib/rage/params_parser.rb
CHANGED
|
@@ -17,7 +17,7 @@ class Rage::ParamsParser
|
|
|
17
17
|
json_parse(env["rack.input"].read)
|
|
18
18
|
elsif content_type.start_with?("application/x-www-form-urlencoded")
|
|
19
19
|
Iodine::Rack::Utils.parse_urlencoded_nested_query(env["rack.input"].read)
|
|
20
|
-
|
|
20
|
+
elsif content_type.start_with?("multipart/form-data")
|
|
21
21
|
Iodine::Rack::Utils.parse_multipart(env["rack.input"], content_type)
|
|
22
22
|
end
|
|
23
23
|
|
|
@@ -25,6 +25,8 @@ class Rage::ParamsParser
|
|
|
25
25
|
request_params.merge!(url_params)
|
|
26
26
|
elsif request_params && query_params
|
|
27
27
|
request_params.merge!(query_params, url_params)
|
|
28
|
+
elsif query_params
|
|
29
|
+
query_params.merge!(url_params)
|
|
28
30
|
else
|
|
29
31
|
url_params
|
|
30
32
|
end
|
data/lib/rage/version.rb
CHANGED