Update weed/s3api/s3api_object_handlers.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Chris Lu
2025-07-14 23:44:02 -07:00
committed by GitHub
co-authored by Copilot
parent 5e8bbf94dd
commit aab2df4a5e
+2 -2
View File
@@ -392,9 +392,9 @@ func setUserMetadataKeyToLowercase(resp *http.Response) {
}
}
func captureCORSHeaders(w http.ResponseWriter, corsHeaders []string) map[string]string {
func captureCORSHeaders(w http.ResponseWriter, headersToCapture []string) map[string]string {
captured := make(map[string]string)
for _, corsHeader := range corsHeaders {
for _, corsHeader := range headersToCapture {
if value := w.Header().Get(corsHeader); value != "" {
captured[corsHeader] = value
}