fix MAKE-CLF (which prepended superfluous slash to requested resource)
This commit is contained in:
parent
9d3ddd79b9
commit
8e7e071db2
|
@ -169,11 +169,21 @@
|
|||
(or (maybe-dns-lookup remote-ip) "-")
|
||||
(format-date "[~d/~b/~Y:~H:~M:~S +0000]" (date)) ; +0000 as we don't know
|
||||
(string-join (list request-type
|
||||
(string-append "/" requested-file)
|
||||
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.
|
||||
|
||||
; --> Shouldn't be a problem: the original request
|
||||
; line is reconstructed almost completely:
|
||||
; requested-file (i.e. http-url->url-string url) is
|
||||
; exactly the original Request_URI (apart from
|
||||
; multiple slashes, which are thrown away),
|
||||
; request-type and protocol are the original.
|
||||
; --> Only number of slashes in Request_URI and
|
||||
; whitespace between parts of Request-Line can differ.
|
||||
|
||||
(or http-code "-")
|
||||
(or filesize "-")
|
||||
(if (string? referer) (string-trim referer) '-)
|
||||
|
|
Loading…
Reference in New Issue