Fix 304 edge case in atom feed
* tekuti/page.scm (atom-feed-from-posts): Don't bomb if the client sends a if-modified-since but we have no posts.
This commit is contained in:
parent
cf10aa7056
commit
7643585d12
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@
|
|||
(post-timestamp (car posts)))))
|
||||
(cond
|
||||
((let ((since (request-if-modified-since request)))
|
||||
(and since (>= (date->timestamp since) last-modified)))
|
||||
(and since last-modified (>= (date->timestamp since) last-modified)))
|
||||
(respond #f #:status 304
|
||||
#:last-modified (timestamp->date last-modified)
|
||||
#:etag (assq-ref index 'master)))
|
||||
|
|
Loading…
Reference in a new issue