about summary refs log tree commit diff stats
path: root/src/types
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-11-17 23:19:17 +0100
committerbptato <nincsnevem662@gmail.com>2023-11-17 23:19:17 +0100
commit6b2226febd53a75dc4d45963dd8f7ab8249d78dc (patch)
tree4d9f52ad15c0c9e4b77023ca802c2e6aa729c7a0 /src/types
parent85c5b568510e3be46252a0857e412ef0f66eb6de (diff)
downloadchawan-6b2226febd53a75dc4d45963dd8f7ab8249d78dc.tar.gz
urimethodmap: do not escape substituted URI
This is consistent with what w3m does and is way more convenient.
Diffstat (limited to 'src/types')
-rw-r--r--src/types/urimethodmap.nim2
1 files changed, 1 insertions, 1 deletions
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