Fix uri format to follow RFC 3986 (#2157)
This commit is contained in:
1 parent
55249e29be
commit
689a4e660b
2 files changed
+12
-12
No files matched your search
+1
-1
@@ -645,7 +645,7 @@ static jv f_format(jq_state *jq, jv input, jv fmt) {
|
||||
input = f_tostring(jq, input);
|
||||
|
||||
int unreserved[128] = {0};
|
||||
const char* p = CHARS_ALPHANUM "-_.!~*'()";
|
||||
const char* p = CHARS_ALPHANUM "-_.~";
|
||||
while (*p) unreserved[(int)*p++] = 1;
|
||||
|
||||
jv line = jv_string("");
|
||||
|
||||
Reference in new issue
Block a user