removing leading space from refer and browser-field in CLF-Logfile

This commit is contained in:
interp 2002-04-06 16:23:07 +00:00
parent 9d496f8d6f
commit d03627531a
1 changed files with 5 additions and 2 deletions

View File

@ -130,8 +130,11 @@
; Files conform to CLF are expected to print the original line.
(or http-code "-")
(or filesize "-")
(or referer "")
(or user-agent "")))
(if (string? referer) (string-trim referer char-set:whitespace) "")
(if (string? user-agent)
(string-trim user-agent char-set:whitespace)
"")))
;;; (httpd options)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;