chrislu 2 months ago
parent
commit
1c2b10303a
  1. 2
      weed/s3api/auth_signature_v4.go

2
weed/s3api/auth_signature_v4.go

@ -687,8 +687,6 @@ func extractSignedHeaders(signedHeaders []string, r *http.Request) (http.Header,
// Go http server removes "host" from Request.Header // Go http server removes "host" from Request.Header
if forwardedHost := r.Header.Get("X-Forwarded-Host"); forwardedHost != "" { if forwardedHost := r.Header.Get("X-Forwarded-Host"); forwardedHost != "" {
extractedSignedHeaders.Set(header, forwardedHost) extractedSignedHeaders.Set(header, forwardedHost)
} else if forwardedFor := r.Header.Get("X-Forwarded-For"); forwardedFor != "" {
extractedSignedHeaders.Set(header, forwardedFor)
} else { } else {
extractedSignedHeaders.Set(header, r.Host) extractedSignedHeaders.Set(header, r.Host)
} }

Loading…
Cancel
Save