From 0209f645e6a772a70fe4452071ef7fed0e98c769 Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 13 Nov 2025 20:57:58 -0800 Subject: [PATCH] not used --- weed/s3api/s3api_object_handlers.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go index bcef713bb..f341e0b38 100644 --- a/weed/s3api/s3api_object_handlers.go +++ b/weed/s3api/s3api_object_handlers.go @@ -245,16 +245,6 @@ func (s3a *S3ApiServer) hasConditionalHeaders(r *http.Request) bool { r.Header.Get(s3_constants.IfUnmodifiedSince) != "" } -// hasSSECHeaders checks if the request has SSE-C decryption headers -// SSE-C requires the customer to provide the decryption key in GET/HEAD requests -// This check is intentionally broad to ensure metadata is fetched if any SSE-C headers are present. -// Stricter validation of mutually exclusive headers happens later in the request processing. -func (s3a *S3ApiServer) hasSSECHeaders(r *http.Request) bool { - return r.Header.Get(s3_constants.AmzServerSideEncryptionCustomerAlgorithm) != "" || - r.Header.Get(s3_constants.AmzServerSideEncryptionCustomerKey) != "" || - r.Header.Get(s3_constants.AmzServerSideEncryptionCustomerKeyMD5) != "" -} - // processConditionalHeaders checks conditional headers and writes an error response if a condition fails. // It returns the result of the check and a boolean indicating if the request has been handled. func (s3a *S3ApiServer) processConditionalHeaders(w http.ResponseWriter, r *http.Request, bucket, object, handlerName string) (ConditionalHeaderResult, bool) {