about summary refs log tree commit diff stats
path: root/src/server
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-15 00:41:17 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-15 00:41:54 +0100
commitb175d8200561f6afc894b40aaf70502ee529aed8 (patch)
tree8c2998ab4edce764eced2f5dfa3f5b03b557516c /src/server
parent880685a1c3d7b0e4ac386783489512b61aeb806c (diff)
downloadchawan-b175d8200561f6afc894b40aaf70502ee529aed8.tar.gz
Clean up BufferConfig
It was defined in the wrong module, and unnecessarily included
LoaderClientConfig.

Also, referrerPolicy was not being propagated to loader clients because
it was (incorrectly) in BufferConfig instead of LoaderClientConfig.
Diffstat (limited to 'src/server')
-rw-r--r--src/server/buffer.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim
index 7e4b7190..96d9c5ff 100644
--- a/src/server/buffer.nim
+++ b/src/server/buffer.nim
@@ -130,6 +130,15 @@ type
     opaque: InterfaceOpaque
     stream*: BufStream
 
+  BufferConfig* = object
+    userstyle*: string
+    referer_from*: bool
+    scripting*: bool
+    images*: bool
+    isdump*: bool
+    charsets*: seq[Charset]
+    charsetOverride*: Charset
+
 proc getFromOpaque[T](opaque: pointer, res: var T) =
   let opaque = cast[InterfaceOpaque](opaque)
   if opaque.len != 0: