all repos — homestead @ 9814f620a81f44a80af2017d8dee2343c6dd4f22

Code for my website

fix logging of host header why on earth does net/http **remove** the host header and not make it clear? It's only "documented" in the comments of the fields of the Request struct and not even hinted at in the Header() documentation

Alan Pearce
commit

9814f620a81f44a80af2017d8dee2343c6dd4f22

parent

2fb4c8412ef35fa096c9a22a076dff282dfd030e

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M internal/server/logging.gointernal/server/logging.go
@@ -32,7 +32,7 @@ scheme := r.Header.Get("X-Forwarded-Proto")
if scheme == "" { scheme = "http" } - host := r.Header.Get("Host") + host := r.Host if host == "" { host = opts.defaultHostname }