MCPcopy Create free account
hub / github.com/zalando/skipper / addBranding

Function addBranding

proxy/proxy.go:1016–1020  ·  view source on GitHub ↗

addBranding overwrites any existing `X-Powered-By` or `Server` header from headerMap

(headerMap http.Header)

Source from the content-addressed store, hash-verified

1014
1015// addBranding overwrites any existing `X-Powered-By` or `Server` header from headerMap
1016func addBranding(headerMap http.Header) {
1017 if headerMap.Get("Server") == "" {
1018 headerMap.Set("Server", "Skipper")
1019 }
1020}
1021
1022func (p *Proxy) lookupRoute(ctx *context) (rt *routing.Route, params map[string]string) {
1023 for _, pr := range p.priorityRoutes {

Callers 2

doMethod · 0.85
makeErrorResponseMethod · 0.85

Calls 2

GetMethod · 0.65
SetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…