Use SEND-ERROR instead of MAKE-ERROR-RESPONSE.
This commit is contained in:
parent
fe10f7b609
commit
7747dd4ac6
|
@ -51,9 +51,8 @@
|
||||||
(a (@ (href "javascript:history.go(-2)")) "New calculation (same session)")(br)
|
(a (@ (href "javascript:history.go(-2)")) "New calculation (same session)")(br)
|
||||||
(a (@ (href ,new-url)) "Close this session")))))))
|
(a (@ (href ,new-url)) "Close this session")))))))
|
||||||
;; How to clear session data and go to another HTML page:
|
;; How to clear session data and go to another HTML page:
|
||||||
(send/finish
|
(send-error (status-code moved-temp) req
|
||||||
(make-error-response (status-code moved-temp) req
|
"/" "/")
|
||||||
"/" "/"))
|
|
||||||
))
|
))
|
||||||
; ))
|
; ))
|
||||||
))
|
))
|
||||||
|
|
|
@ -227,8 +227,8 @@ plot '~a' title 'SUrflet Profiling ~a' with lines"
|
||||||
(return-to-main-page req))
|
(return-to-main-page req))
|
||||||
|
|
||||||
(define (return-to-main-page req)
|
(define (return-to-main-page req)
|
||||||
(send/finish (make-error-response (status-code moved-perm) req
|
(send-error (status-code moved-perm) req
|
||||||
"admin.scm" "admin.scm")))
|
"admin.scm" "admin.scm"))
|
||||||
|
|
||||||
(define (main req)
|
(define (main req)
|
||||||
;; We'll fill this out soon.
|
;; We'll fill this out soon.
|
||||||
|
|
|
@ -295,8 +295,8 @@
|
||||||
(map car continuations))))
|
(map car continuations))))
|
||||||
|
|
||||||
(define (return-to-main-page req)
|
(define (return-to-main-page req)
|
||||||
(send/finish (make-error-response (status-code moved-perm) req
|
(send-error (status-code moved-perm) req
|
||||||
"admin.scm" "admin.scm")))
|
"admin.scm" "admin.scm"))
|
||||||
|
|
||||||
(define (main req)
|
(define (main req)
|
||||||
(surflets req))
|
(surflets req))
|
||||||
|
|
Loading…
Reference in New Issue