diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2009-10-07 14:30:28 +0200 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2009-10-07 14:30:28 +0200 |
commit | 053f3ba708be24fc7f9be0d9e96c633e150a0715 (patch) | |
tree | b4c1a0f7c1a105f4ea2571084b8c9f8e526a3322 | |
parent | 54237f308a3fc40d2297f5e8d24c17f4aeeed0ef (diff) |
Do not crash when processing a request without an If-Modified-Since header.
darcs-hash:4a5478c5c626f7574f54a8bc0a252769306c8718
-rw-r--r-- | utils.lisp | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -328,10 +328,11 @@ ELEMENT-TYPE as the stream's." (defun revalidate-cache-or-die () #+clisp - (let ((time (cybertiggyr-time:parse-time *if-modified-since*))) - (when (and (integerp time) (>= *if-modified-since* (compute-journal-last-modified-date))) - (http-add-header "Status: 304 Not Modified") - (http-send-headers) - (ext:quit 0))) + (when *if-modified-since* + (let ((time (cybertiggyr-time:parse-time *if-modified-since*))) + (when (and (integerp time) (>= *if-modified-since* (compute-journal-last-modified-date))) + (http-add-header "Status: 304 Not Modified") + (http-send-headers) + (ext:quit 0)))) #-clisp nil) |