replace calls of HTTP-URL->STRING (relict of old URL parser)
with calls of HTTP-URL->URL-STRING
This commit is contained in:
parent
17a46a7e71
commit
0de6fe79b4
|
@ -254,7 +254,7 @@
|
|||
((directory) ; Send back a redirection "foo" -> "foo/"
|
||||
(make-error-response
|
||||
(status-code moved-perm) req
|
||||
(string-append (http-url->string (request-url req))
|
||||
(string-append (http-url->url-string (request-url req))
|
||||
"/")))
|
||||
|
||||
(else (make-error-response (status-code forbidden) req)))))
|
||||
|
|
|
@ -255,7 +255,7 @@
|
|||
(lambda (port options)
|
||||
(generic-title port)
|
||||
(format port "The method ~A is not allowed on the requested resource ~A.~%"
|
||||
(request-method req) (http-url->string (request-url req)))
|
||||
(request-method req) (http-url->url-string (request-url req)))
|
||||
(close-html port (cdr extras)))))
|
||||
|
||||
;; This error response requires one arg:
|
||||
|
@ -284,7 +284,7 @@
|
|||
(lambda (port options)
|
||||
(title-html port "Resource not found")
|
||||
(format port "The requested resource ~A was not found on this server.~%"
|
||||
(http-url->string (request-url req)))
|
||||
(http-url->url-string (request-url req)))
|
||||
(close-html port extras))))
|
||||
|
||||
((eq? code (status-code internal-error))
|
||||
|
|
Loading…
Reference in New Issue