about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-05-21 13:28:33 +0200
committerbptato <nincsnevem662@gmail.com>2023-05-21 13:28:33 +0200
commitd09319640c4b1e24b937d1fc37a3f8b82052e612 (patch)
tree45631e7ed2c23ce4a4217bfe2037cba2ba873231 /src/config
parent7c612d65be345fd1ef156f95bb033d9bbf8aece8 (diff)
downloadchawan-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.nim6
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,