Archived
优化响应报头
This commit is contained in:
@@ -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)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user