adapt calls of make-error-response:

no URI header field in 1.1
This commit is contained in:
vibr 2004-07-29 16:09:31 +00:00
parent 5e14a326b9
commit 63e4761c58
2 changed files with 1 additions and 3 deletions

View File

@ -260,8 +260,7 @@
(if loc
(if (uri-has-protocol? (string-trim loc))
(make-error-response (status-code moved-perm) req
loc loc)
(make-error-response (status-code moved-perm) req loc)
(make-redirect-response (string-trim loc)))
;; Send the response header back to the client
(make-response ;code message seconds mime extras body

View File

@ -254,7 +254,6 @@
((directory) ; Send back a redirection "foo" -> "foo/"
(make-error-response
(status-code moved-perm) req
(string-append (request-uri req) "/")
(string-append (http-url->string (request-url req))
"/")))