From 6b2226febd53a75dc4d45963dd8f7ab8249d78dc Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 17 Nov 2023 23:19:17 +0100 Subject: urimethodmap: do not escape substituted URI This is consistent with what w3m does and is way more convenient. --- src/types/urimethodmap.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/types') diff --git a/src/types/urimethodmap.nim b/src/types/urimethodmap.nim index f2015a70..8453e554 100644 --- a/src/types/urimethodmap.nim +++ b/src/types/urimethodmap.nim @@ -18,7 +18,7 @@ func rewriteURL(pattern, surl: string): string = if c == '%': result &= '%' elif c == 's': - result.percentEncode(surl, ComponentPercentEncodeSet) + result &= surl else: result &= '%' result &= c -- cgit