diff options
author | bptato <nincsnevem662@gmail.com> | 2023-11-17 23:19:17 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-11-17 23:19:17 +0100 |
commit | 6b2226febd53a75dc4d45963dd8f7ab8249d78dc (patch) | |
tree | 4d9f52ad15c0c9e4b77023ca802c2e6aa729c7a0 /src/types | |
parent | 85c5b568510e3be46252a0857e412ef0f66eb6de (diff) | |
download | chawan-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.nim | 2 |
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 |