about summary refs log tree commit diff stats
path: root/src/types
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-12 19:51:03 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-12 20:20:24 +0100
commit22480a38c618aea42285b20868231f247932f2ab (patch)
treeba9b562124c1c30782ed87cd94122e962b80f637 /src/types
parent232d861836993d81f7828a2917e8d242a23194e0 (diff)
downloadchawan-22480a38c618aea42285b20868231f247932f2ab.tar.gz
loader: remove applyHeaders
Better compute the values we need on-demand at the call sites; this way,
we can pass through content type attributes to mailcap too.

(Also, remove a bug where applyResponse was called twice.)
Diffstat (limited to 'src/types')
-rw-r--r--src/types/blob.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/blob.nim b/src/types/blob.nim
index 63fb5b84..5b1efa65 100644
--- a/src/types/blob.nim
+++ b/src/types/blob.nim
@@ -53,7 +53,7 @@ proc newWebFile*(path: string, webkitRelativePath = ""): WebFile =
     isfile: true,
     path: path,
     file: file,
-    ctype: guessContentType(path),
+    ctype: DefaultGuess.guessContentType(path),
     webkitRelativePath: webkitRelativePath
   )