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))