adapt calls of make-error-response:
no URI header field in 1.1
This commit is contained in:
parent
5e14a326b9
commit
63e4761c58
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
"/")))
|
||||
|
||||
|
|
Loading…
Reference in New Issue