refactor: remove redundant http.CanonicalHeaderKey
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Dawid Wysokiński 2023-05-12 08:10:55 +02:00
parent 0038d85083
commit 893b1cfd48
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ func newRouter(logger *zap.Logger) *chi.Mux {
ip, _, _ := net.SplitHostPort(r.RemoteAddr)
return ip
}
return r.Header.Get(http.CanonicalHeaderKey("X-Forwarded-For"))
return r.Header.Get("X-Forwarded-For")
}),
))
r.Get("/info", func(w http.ResponseWriter, r *http.Request) {