about summary refs log tree commit diff stats
path: root/adapter/protocol
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-28 20:50:51 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-28 21:06:28 +0200
commit9653c35fb9a4398942ecb305835a95fbd87c433a (patch)
tree2db576e71cd89557592715d64ecb4fb4a46f8c66 /adapter/protocol
parentdbf2e0e831ebaf8a0e6f375a8f423f87280e7862 (diff)
downloadchawan-9653c35fb9a4398942ecb305835a95fbd87c433a.tar.gz
buffer, pager, config: add meta-refresh + misc fixes
* buffer, pager, config: add meta-refresh value, which makes it possible
  to follow http-equiv=refresh META tags.
* config: clean up redundant format mode parser
* timeout: accept varargs for params to pass on to functions
* pager: add "options" dict to JS gotoURL
* twtstr: remove redundant startsWithNoCase
Diffstat (limited to 'adapter/protocol')
-rw-r--r--adapter/protocol/http.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/protocol/http.nim b/adapter/protocol/http.nim
index b51d6349..d00479e4 100644
--- a/adapter/protocol/http.nim
+++ b/adapter/protocol/http.nim
@@ -135,7 +135,7 @@ proc main() =
   else: discard #TODO
   let headers = getEnv("REQUEST_HEADERS")
   for line in headers.split("\r\n"):
-    if line.startsWithNoCase("Accept-Encoding: "):
+    if line.startsWithIgnoreCase("Accept-Encoding: "):
       let s = line.after(' ')
       # From the CURLOPT_ACCEPT_ENCODING manpage:
       # > The application does not have to keep the string around after