use redirect-to

This commit is contained in:
Stephen Chang 2015-05-14 21:32:36 +00:00
parent 638be53745
commit 8262340776

View File

@ -489,11 +489,7 @@
paste-url)))
(fprintf log-port "~a\t~a\t~a\t~a\n"
tm-str paste-num paste-name (request-client-ip request))
(response/xexpr
`(html ()
(head ()
(script () ,(++ "location.href=\"" paste-url "\"")))
(body ())))]
(redirect-to paste-url permanently)]
[else
(response/xexpr
`(html ()