MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / shouldIgnoreHeader

Method shouldIgnoreHeader

internal/nodes/http_writer.go:1296–1303  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

1294}
1295
1296func (this *HTTPWriter) shouldIgnoreHeader(name string) bool {
1297 switch name {
1298 case "Set-Cookie", "Strict-Transport-Security", "Alt-Svc", "Upgrade", "X-Cache":
1299 return true
1300 default:
1301 return this.isPartial && name == "Content-Range"
1302 }
1303}

Callers 4

PrepareCacheMethod · 0.95
PrepareCompressionMethod · 0.95
finishWebPMethod · 0.95
calculateHeaderLengthMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected