diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-15 00:41:17 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-15 00:41:54 +0100 |
commit | b175d8200561f6afc894b40aaf70502ee529aed8 (patch) | |
tree | 8c2998ab4edce764eced2f5dfa3f5b03b557516c /src/server | |
parent | 880685a1c3d7b0e4ac386783489512b61aeb806c (diff) | |
download | chawan-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.nim | 9 |
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: |