mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 06:26:34 +08:00
优化响应报头
This commit is contained in:
@@ -787,12 +787,10 @@ func (this *HTTPWriter) AddHeaders(header http.Header) {
|
||||
continue
|
||||
}
|
||||
switch key {
|
||||
case "ETag":
|
||||
case "Accept-CH", "ETag", "Content-MD5", "IM", "P3P", "WWW-Authenticate", "X-Request-ID":
|
||||
newHeaders[key] = value
|
||||
default:
|
||||
for _, v := range value {
|
||||
newHeaders.Add(key, v)
|
||||
}
|
||||
newHeaders[http.CanonicalHeaderKey(key)] = value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user