Use request.Host over Host header

Go already figured out this
This commit is contained in:
2026-09-02 19:21:36 +02:00
parent 11e7eff03c
commit 78294a5394
+1 -1
View File
@@ -528,7 +528,7 @@ func getHost(r *http.Request) string {
}
// Fallback to Host header
if host := r.Header.Get("Host"); host != "" {
if host := r.Host; host != "" {
return host
}