about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-22 17:17:03 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-22 17:17:03 +0200
commit9ddcec100e09ac85c1a0746fe05df855bed720ea (patch)
treedc23544687ef9e2d8da9cd9250d3589144e1ce7e
parent7de2ce6917969dbb8f42126fbe4c397912762957 (diff)
downloadchawan-9ddcec100e09ac85c1a0746fe05df855bed720ea.tar.gz
stbi: allow x-unknown
-rw-r--r--adapter/img/stbi.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/img/stbi.nim b/adapter/img/stbi.nim
index c0f44c86..bd63b4a0 100644
--- a/adapter/img/stbi.nim
+++ b/adapter/img/stbi.nim
@@ -57,7 +57,7 @@ proc main() =
   let f = scheme.after('+')
   case getEnv("MAPPED_URI_PATH")
   of "decode":
-    if f notin ["jpeg", "gif", "bmp", "png"]:
+    if f notin ["jpeg", "gif", "bmp", "png", "x-unknown"]:
       stdout.write("Cha-Control: ConnectionError 1 unknown format " & f)
     var x: cint
     var y: cint