We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c61c39 commit 1318d46Copy full SHA for 1318d46
src/core/util.ml
@@ -6,7 +6,8 @@ let percent_encode ?(skip = fun _ -> false) s =
6
| ( ' ' | '!' | '"' | '#' | '$' | '%' | '&' | '\'' | '(' | ')' | '*' | '+'
7
| ',' | '/' | ':' | ';' | '=' | '?' | '@' | '[' | ']' | '~' ) as c ->
8
Printf.bprintf buf "%%%X" (Char.code c)
9
- | c when Char.code c > 127 -> Printf.bprintf buf "%%%X" (Char.code c)
+ | c when Char.code c < 32 || Char.code c > 127 ->
10
+ Printf.bprintf buf "%%%X" (Char.code c)
11
| c -> Buffer.add_char buf c)
12
s;
13
Buffer.contents buf
0 commit comments