From d0efc1f4702489462a955bb11bdf05744c0e77ca Mon Sep 17 00:00:00 2001 From: interp Date: Tue, 2 Apr 2002 20:25:11 +0000 Subject: [PATCH] Don't lose initial "/" in path-list until handler is invoked. --- httpd-core.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/httpd-core.scm b/httpd-core.scm index 5a2af03..61fbf12 100644 --- a/httpd-core.scm +++ b/httpd-core.scm @@ -123,7 +123,7 @@ (format #f "~A - - ~A ~S ~A ~A ~S ~S~%" (or remote-ip "-") (format-date "[~d/~b/~Y:~H:~M:~S +0000]" (date)) ; +0000 as we don't know - (string-join (list "/" request-type requested-file protocol)) + (string-join (list request-type requested-file protocol)) ; Unfortunately, we first split the request line into ; method/request-type etc. and put it together here. ; Files conform to CLF are expected to print the original line. @@ -259,7 +259,7 @@ (parse-http-request sock options))) ; (1) Parse request. (handler (httpd-options-path-handler options))) - (handler (http-url:path (request:url req)) req) ; (2) Deal with it. + (handler (cdr (http-url:path (request:url req))) req) ; (2) Deal with it. (skipped initial "/") (http-log req http-reply/ok)))) @@ -370,7 +370,7 @@ (make-http-url (make-userhost #f #f local-name (number->string portnum)) - (map unescape-uri (cdr path)) ;Skip initial /. + (map unescape-uri path) ; DON'T Skip initial /. search #f))