diff --git a/weed/s3api/s3tables/handler.go b/weed/s3api/s3tables/handler.go index 76be2334a..ccff1fe7c 100644 --- a/weed/s3api/s3tables/handler.go +++ b/weed/s3api/s3tables/handler.go @@ -159,11 +159,6 @@ func (h *S3TablesHandler) getPrincipalFromRequest(r *http.Request) string { return identityName } - // Fallback to request header (e.g., for testing or legacy clients) - if principal := r.Header.Get("X-Amz-Principal"); principal != "" { - return principal - } - // Fallback to the authenticated account ID if accountID := r.Header.Get(s3_constants.AmzAccountId); accountID != "" { return accountID