优化响应报头

This commit is contained in:
GoEdgeLab
2023-08-23 16:33:19 +08:00
parent b3d427a398
commit 74c8bc53d3
+2 -4
View File
@@ -787,12 +787,10 @@ func (this *HTTPWriter) AddHeaders(header http.Header) {
continue continue
} }
switch key { switch key {
case "ETag": case "Accept-CH", "ETag", "Content-MD5", "IM", "P3P", "WWW-Authenticate", "X-Request-ID":
newHeaders[key] = value newHeaders[key] = value
default: default:
for _, v := range value { newHeaders[http.CanonicalHeaderKey(key)] = value
newHeaders.Add(key, v)
}
} }
} }
} }