summaryrefslogtreecommitdiff
path: root/utils.lisp
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2009-10-07 15:16:05 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2009-10-07 15:16:05 +0200
commit6bdb116a0fbbbcd152b4f738cbdb52ef313dcf2e (patch)
treef29395497360f04daf058c99d3599131c691b339 /utils.lisp
parentc45f1586910c3a76c3c91d35c74f8e9bd0c634ff (diff)
Specify the correct content type even for 304 responses.
Ignore-this: 813bd2f6535f3f0ec7f8ec1ad8757bde darcs-hash:e83444f36f9f27dcca66631e95f221d6caa7950b
Diffstat (limited to 'utils.lisp')
-rw-r--r--utils.lisp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.lisp b/utils.lisp
index be7af1e..e111231 100644
--- a/utils.lisp
+++ b/utils.lisp
@@ -326,7 +326,7 @@ ELEMENT-TYPE as the stream's."
(spamp comment)
(body-of comment))))
-(defun revalidate-cache-or-die ()
+(defun revalidate-cache-or-die (content-type)
#+clisp
(when *if-modified-since*
(let* ((date-recognisers (mapcar #'cybertiggyr-time::make-fmt-recognizer '("%A, %d-%B-%y %H:%M:%S GMT" "%A, %d %B %Y %H:%M:%S GMT" "%A %B %d %H:%M:%S %Y")))
@@ -336,7 +336,7 @@ ELEMENT-TYPE as the stream's."
(integerp modified-time)
(>= requested-time modified-time))
(http-add-header "Status" "304 Not Modified")
- (http-send-headers)
+ (http-send-headers content-type)
(ext:quit 0))))
#-clisp
nil)