diff options
author | bptato <nincsnevem662@gmail.com> | 2023-05-21 13:28:33 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-05-21 13:28:33 +0200 |
commit | d09319640c4b1e24b937d1fc37a3f8b82052e612 (patch) | |
tree | 45631e7ed2c23ce4a4217bfe2037cba2ba873231 /src/config | |
parent | 7c612d65be345fd1ef156f95bb033d9bbf8aece8 (diff) | |
download | chawan-d09319640c4b1e24b937d1fc37a3f8b82052e612.tar.gz |
Rewrite new Request binding
Still far from perfect, but now at least it has a bit more to do with what the standard mandates.
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/config.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config/config.nim b/src/config/config.nim index 45c177ad..d2650a2e 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -109,7 +109,7 @@ type userstyle*: string filter*: URLFilter cookiejar*: CookieJar - headers*: HeaderList + headers*: Headers refererfrom*: bool referrerpolicy*: ReferrerPolicy scripting*: bool @@ -125,7 +125,7 @@ const DefaultHeaders* = { "Accept-Language": "en;q=1.0", "Pragma": "no-cache", "Cache-Control": "no-cache", -}.toTable().newHeaderList()[] +}.toTable().newHeaders()[] func getForkServerConfig*(config: Config): ForkServerConfig = return ForkServerConfig( @@ -134,7 +134,7 @@ func getForkServerConfig*(config: Config): ForkServerConfig = ) proc getBufferConfig*(config: Config, location: URL, cookiejar: CookieJar = nil, - headers: HeaderList = nil, refererfrom = false, scripting = false, + headers: Headers = nil, refererfrom = false, scripting = false, charsets = config.encoding.document_charset): BufferConfig = result = BufferConfig( userstyle: config.css.stylesheet, |