Browse Source

fix

pull/6987/head
chrislu 3 months ago
parent
commit
27ec13ca23
  1. 4
      weed/s3api/s3api_object_handlers.go

4
weed/s3api/s3api_object_handlers.go

@ -403,8 +403,8 @@ func captureCORSHeaders(w http.ResponseWriter, corsHeaders []string) map[string]
} }
func restoreCORSHeaders(w http.ResponseWriter, capturedCORSHeaders map[string]string) { func restoreCORSHeaders(w http.ResponseWriter, capturedCORSHeaders map[string]string) {
for corsHeader, values := range capturedCORSHeaders {
w.Header()[corsHeader] = values
for corsHeader, value := range capturedCORSHeaders {
w.Header().Set(corsHeader, value)
} }
} }

Loading…
Cancel
Save