Use quasiquote for internally handled response headers
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
f261baf9a3
commit
a43e47e153
4
meme.scm
4
meme.scm
|
@ -41,14 +41,14 @@
|
|||
(cond
|
||||
((equal? path "/style.css")
|
||||
(display ";\tHandler: internal") (newline)
|
||||
(values '((content-type . (text/css))
|
||||
(values `((content-type . (text/css))
|
||||
(cache-control .
|
||||
,(parse-header 'cache-control
|
||||
"max-age=604800")))
|
||||
(call-with-input-file "static/style.css" get-string-all)))
|
||||
((equal? path "/favicon.png")
|
||||
(display ";\tHandler: internal") (newline)
|
||||
(values '((content-type . (image/png))
|
||||
(values `((content-type . (image/png))
|
||||
(cache-control .
|
||||
,(parse-header 'cache-control
|
||||
"max-age=604800")))
|
||||
|
|
Loading…
Reference in New Issue