Add comment to MAKE-REDIRECT-RESPONSE.
This commit is contained in:
parent
1dcee71722
commit
7055289412
|
@ -244,8 +244,13 @@ response of a gateway.~%")
|
|||
(format out "<HEAD>~%<TITLE>~%~A~%</TITLE>~%</HEAD>~%~%" message)
|
||||
(format out "<BODY>~%<H1>~A</H1>~%" message))
|
||||
|
||||
;; Creates a redirect response. The server will serve the new file indicated by
|
||||
;; NEW-LOCATION. NEW-LOCATION must be uri-encoded and begin with a slash.
|
||||
;; Creates a redirect response. The server will serve the new file
|
||||
;; indicated by NEW-LOCATION. NEW-LOCATION must be uri-encoded and
|
||||
;; begin with a slash. This is intended for CGI scripts. Note that
|
||||
;; the browser won't notice the redirect. Thus, it will keep the
|
||||
;; original URL. For "real" redirections, use
|
||||
;; (make-error-response (status-code moved-perm) req
|
||||
;; "new-location" "new-location").
|
||||
(define (make-redirect-response new-location)
|
||||
(make-response
|
||||
(status-code redirect)
|
||||
|
|
Loading…
Reference in New Issue