Skip to content

Commit e53ce67

Browse files
author
Andrii Sultanov
committed
Fix a bug noticed by a quicktest run
Introduces percent-decoding back - in the past we used to do urlencode in parse_uri instead. Signed-off-by: Andrii Sultanov <andrii.sultanov@cloud.com>
1 parent de02e53 commit e53ce67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/libs/http-lib/http_svr.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ let request_of_bio_exn ~proxy_seen ~read_timeout ~total_timeout ~max_length bio
375375
(* Request-Line = Method SP Request-URI SP HTTP-Version CRLF *)
376376
let uri_t = Uri.of_string uri in
377377
if uri_t = Uri.empty then raise Http_parse_failure ;
378-
let uri = Uri.path uri_t in
378+
let uri = Uri.path uri_t |> Uri.pct_decode in
379379
let query = Uri.query uri_t |> kvlist_flatten in
380380
let m = Http.method_t_of_string meth in
381381
let version =

0 commit comments

Comments
 (0)