diff --git a/weed/s3api/auth_signature_v4.go b/weed/s3api/auth_signature_v4.go index c37aa1289..9cc3e2766 100644 --- a/weed/s3api/auth_signature_v4.go +++ b/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 if forwardedHost := r.Header.Get("X-Forwarded-Host"); forwardedHost != "" { extractedSignedHeaders.Set(header, forwardedHost) - } else if forwardedFor := r.Header.Get("X-Forwarded-For"); forwardedFor != "" { - extractedSignedHeaders.Set(header, forwardedFor) } else { extractedSignedHeaders.Set(header, r.Host) }