aboutsummaryrefslogtreecommitdiffstats
path: root/src/types
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-27 02:48:21 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-27 02:51:41 +0200
commitac3e737867245ac65adfa2352ce6e7fdacc57b18 (patch)
treee747a5891176c7dce618bafaf79d750d5a40416f /src/types
parent285b6f32c28d1cda403ba33bfb2d22c34fab2a1e (diff)
downloadchawan-ac3e737867245ac65adfa2352ce6e7fdacc57b18.tar.gz
buffer: simplify contentType handling
* remove contentType member of Buffer object * add ishtml to reduce string comparisons * consistent spelling: contenttype -> contentType
Diffstat (limited to 'src/types')
-rw-r--r--src/types/buffersource.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/buffersource.nim b/src/types/buffersource.nim
index 97126ed1..9b4e1814 100644
--- a/src/types/buffersource.nim
+++ b/src/types/buffersource.nim
@@ -14,7 +14,7 @@ type
BufferSource* = object
location*: URL
- contenttype*: Option[string] # override
+ contentType*: Option[string] # override
charset*: Charset # fallback
case t*: BufferSourceType
of CLONE: