aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2022-02-14 13:43:15 -0600
committerColin Okay <okay@toyful.space>2022-02-14 13:43:15 -0600
commitec229054f673b0aca47dcfe8ac46d6acd3df6a32 (patch)
treea3734e2335c46e4e1d2129bdebca90494c99b52f
parent128f72863fa3f736c93175267beb23292e70e096 (diff)
default content type tweak in hunchentoot backend
-rw-r--r--lazybones-hunchentoot.lisp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lazybones-hunchentoot.lisp b/lazybones-hunchentoot.lisp
index c5e55fa..09152ce 100644
--- a/lazybones-hunchentoot.lisp
+++ b/lazybones-hunchentoot.lisp
@@ -248,8 +248,9 @@ return the content."
(response-header :content-type) (or (response-header :content-type)
(when (pathnamep content)
(h:mime-type content))
- (lzb::default-content-type lzb:*app*)
- (error "Content Type Not Set")))
+ (when lzb:*app*
+ (lzb::default-content-type lzb:*app*))
+ "text/plain"))
(if (pathnamep content)
(h:handle-static-file content)
content))