mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-09 03:50:27 +08:00
缓存内容报头时忽略X-Cache
This commit is contained in:
@@ -1284,7 +1284,7 @@ func (this *HTTPWriter) calculateHeaderLength() (result int) {
|
|||||||
|
|
||||||
func (this *HTTPWriter) shouldIgnoreHeader(name string) bool {
|
func (this *HTTPWriter) shouldIgnoreHeader(name string) bool {
|
||||||
switch name {
|
switch name {
|
||||||
case "Set-Cookie", "Strict-Transport-Security", "Alt-Svc", "Upgrade":
|
case "Set-Cookie", "Strict-Transport-Security", "Alt-Svc", "Upgrade", "X-Cache":
|
||||||
return true
|
return true
|
||||||
default:
|
default:
|
||||||
return (this.isPartial && name == "Content-Range")
|
return (this.isPartial && name == "Content-Range")
|
||||||
|
|||||||
Reference in New Issue
Block a user