MCPcopy Create free account
hub / github.com/Hackmanit/Web-Cache-Vulnerability-Scanner / headerToMultiMap

Function headerToMultiMap

pkg/utils.go:372–380  ·  view source on GitHub ↗
(h *fasthttp.ResponseHeader)

Source from the content-addressed store, hash-verified

370}
371
372func headerToMultiMap(h *fasthttp.ResponseHeader) map[string][]string {
373 m := make(map[string][]string)
374 h.VisitAll(func(key, value []byte) {
375 k := string(key)
376 v := string(value)
377 m[k] = append(m[k], v)
378 })
379 return m
380}
381
382func analyzeCacheIndicator(headers http.Header) (indicators []string) {
383 customCacheHeader := strings.ToLower(Config.CacheHeader)

Callers 8

checkIfAlwaysMissFunction · 0.85
cachebusterCookieFunction · 0.85
cachebusterHeaderFunction · 0.85
cachebusterParameterFunction · 0.85
cachebusterHTTPMethodFunction · 0.85
GetWebsiteFunction · 0.85
firstRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected