about summary refs log tree commit diff stats
path: root/src/html/event.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-22 22:17:53 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-22 22:24:27 +0100
commit6f68626e202f93991f678086634692e6366958c6 (patch)
tree411bf8bf78aaae5dc391344370cbb2350de4b884 /src/html/event.nim
parentb2da391458bca7b7f38fc9f03925d704841165c8 (diff)
downloadchawan-6f68626e202f93991f678086634692e6366958c6.tar.gz
buffer: clean up contentType
This fixes a bug where setContentType would call setHTML twice, which
messed up charsets and probably a couple more things. As a bonus, it
allows us to pass around the content type less.

In fact, buffer does not have to know its exact content type, just
whether it is in HTML mode or not. So that's all we tell it now;
only container still keeps track of the content type (as it should).
Diffstat (limited to 'src/html/event.nim')
0 files changed, 0 insertions, 0 deletions