about summary refs log tree commit diff stats
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/server/logging.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/internal/server/logging.go b/internal/server/logging.go
index bbe9469..372972f 100644
--- a/internal/server/logging.go
+++ b/internal/server/logging.go
@@ -51,20 +51,15 @@ func wrapHandlerWithLogging(wrappedHandler http.Handler, opts wrappedHandlerOpti
 		if scheme == "" {
 			scheme = "http"
 		}
-		host := r.Host
-		if host == "" {
-			host = opts.defaultHostname
-		}
 		lw := NewLoggingResponseWriter(w)
 		wrappedHandler.ServeHTTP(lw, r)
 		statusCode := lw.statusCode
 		fmt.Fprintf(
 			opts.logger,
-			"%s %s %d %s %s %s\n",
+			"%s %s %d %s %s\n",
 			scheme,
 			r.Method,
 			statusCode,
-			host,
 			r.URL.Path,
 			lw.Header().Get("Location"),
 		)