diff --git a/http.c b/http.c index 8d693e0..50b50f3 100644 --- a/http.c +++ b/http.c @@ -1259,14 +1259,15 @@ Datum http_request(PG_FUNCTION_ARGS) /* URL Encode Escape Chars */ -/* 48-57 (0-9) 65-90 (A-Z) 97-122 (a-z) 95 (_) 45 (-) */ +/* 45-46 (-.) 48-57 (0-9) 65-90 (A-Z) */ +/* 95 (_) 97-122 (a-z) 126 (~) */ static int chars_to_not_encode[] = { 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,1,0,0,1,1, + 0,0,0,0,0,1,1,0,1,1, 1,1,1,1,1,1,1,1,0,0, 0,0,0,0,0,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1, @@ -1274,7 +1275,7 @@ static int chars_to_not_encode[] = { 1,0,0,0,0,1,0,1,1,1, 1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1, - 1,1,1,0,0,0,0,0 + 1,1,1,0,0,0,1,0 };