mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
Add tests for serverAddressMiddleware
This commit is contained in:
parent
17e0cd5504
commit
65eeb5ec1a
2 changed files with 98 additions and 2 deletions
|
@ -164,8 +164,8 @@ func serverAddressMiddleware(h http.Handler) http.Handler {
|
|||
|
||||
var (
|
||||
xForwardedHost = http.CanonicalHeaderKey("X-Forwarded-Host")
|
||||
xForwardedProto = http.CanonicalHeaderKey("X-Forwarded-Scheme")
|
||||
xForwardedScheme = http.CanonicalHeaderKey("X-Forwarded-Proto")
|
||||
xForwardedProto = http.CanonicalHeaderKey("X-Forwarded-Proto")
|
||||
xForwardedScheme = http.CanonicalHeaderKey("X-Forwarded-Scheme")
|
||||
)
|
||||
|
||||
func serverAddress(r *http.Request) (scheme, host string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue