about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-22 22:54:53 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-22 23:09:54 +0100
commit8ad93c79084e74b29b9d32ce8d9675439e02e0b0 (patch)
tree21f7958e3e97efcdd93dbd0e71a9c23bc1cf3a6f /src/config
parent6f68626e202f93991f678086634692e6366958c6 (diff)
downloadchawan-8ad93c79084e74b29b9d32ce8d9675439e02e0b0.tar.gz
buffer: remove BufferSource
Aside from being a wrapper of Request, it was just storing the -I
charset, except even that didn't actually work. Whoops.

This fixes -I effectively not doing anything; now it's a forced override
that even disables BOM sniffing. (If the user wants to decode a file
using a certain encoding, it seems wise to assume that they really
meant it.)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/config.nim b/src/config/config.nim
index c03f7361..82200334 100644
--- a/src/config/config.nim
+++ b/src/config/config.nim
@@ -143,13 +143,14 @@ type
   BufferConfig* = object
     userstyle*: string
     referer_from*: bool
-    referrerpolicy*: ReferrerPolicy
+    referrerPolicy*: ReferrerPolicy
     scripting*: bool
     charsets*: seq[Charset]
     images*: bool
     loaderConfig*: LoaderConfig
     mimeTypes*: MimeTypes
     cgiDir*: seq[string]
+    charsetOverride*: Charset
 
   ForkServerConfig* = object
     tmpdir*: string