Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
caddyhttp: Fix common_log format's user ID placeholder (#3300)
Francis Lavoie committed
Apr 22, 2020 at 11:05 UTC
bacf50a59ecb979b23d2e8cb565d351ee9a581b4
1 file changed
+1
-1
modules/caddyhttp/server.go
+1
-1
@@ -449,7 +449,7 @@ func cloneURL(from, to *url.URL) {
449
450
const (
451
// commonLogFormat is the common log format. https://en.wikipedia.org/wiki/Common_Log_Format
452
- commonLogFormat = `{http.request.remote.host} ` + commonLogEmptyValue + ` {http.authentication.user.id} [{time.now.common_log}] "{http.request.orig_method} {http.request.orig_uri} {http.request.proto}" {http.response.status} {http.response.size}`
452
+ commonLogFormat = `{http.request.remote.host} ` + commonLogEmptyValue + ` {http.auth.user.id} [{time.now.common_log}] "{http.request.orig_method} {http.request.orig_uri} {http.request.proto}" {http.response.status} {http.response.size}`
453
454
// commonLogEmptyValue is the common empty log value.
455
commonLogEmptyValue = "-"