Don't lose initial "/" in path-list until handler is invoked.
This commit is contained in:
parent
aa1785587b
commit
d0efc1f470
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue