diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-28 20:50:51 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-28 21:06:28 +0200 |
commit | 9653c35fb9a4398942ecb305835a95fbd87c433a (patch) | |
tree | 2db576e71cd89557592715d64ecb4fb4a46f8c66 /adapter/protocol | |
parent | dbf2e0e831ebaf8a0e6f375a8f423f87280e7862 (diff) | |
download | chawan-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.nim | 2 |
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 |