File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -260,14 +260,14 @@ escape-query: function/with [
260
260
][
261
261
parse query [some [
262
262
some allowed
263
- | #"%" 2 numeric ;; already escaped
263
+ | #"%" 2 hex ;; already escaped
264
264
| change #" " #"+"
265
265
| change set c: skip (ajoin [#"%" enbase to binary! c 16 ])
266
266
]]
267
267
query
268
268
][
269
- numeric : system/catalog/bitsets/numeric
270
- allowed: charset [#"a" -#"z" #"A" -#"Z" #"0" -#"9" "-~!@*/|\;,._()[]{}+=?~" ]
269
+ hex : system/catalog/bitsets/hex-digits
270
+ allowed: charset [#"a" -#"z" #"A" -#"Z" #"0" -#"9" "-~!@*/|\;,._()[]{}+=?~& " ]
271
271
]
272
272
273
273
make-http-request : func [
Original file line number Diff line number Diff line change @@ -130,10 +130,11 @@ system/schemes/http/spec/timeout: 30
130
130
--test-- "query with a space"
131
131
;@@ https://github.com/Oldes/Rebol-issues/issues/2606
132
132
--assert all [ ;= OK
133
- block? res: try [read /all append http://httpbin.org/get?q= " Some query" ]
133
+ block? res: try [read /all append http://httpbin.org/get? "q= Some query&v=[] " ]
134
134
res/1 = 200
135
135
map? try [data: decode 'json res/3 ]
136
136
data/args/q == "Some query"
137
+ data/args/v == "[]"
137
138
]
138
139
===end-group===
139
140
You can’t perform that action at this time.
0 commit comments