MCPcopy
hub / github.com/gotify/server / headerIgnoreCase

Function headerIgnoreCase

auth/cors.go:46–53  ·  view source on GitHub ↗
(conf *config.Configuration, search string)

Source from the content-addressed store, hash-verified

44}
45
46func headerIgnoreCase(conf *config.Configuration, search string) (value string) {
47 for key, value := range conf.Server.ResponseHeaders {
48 if strings.ToLower(key) == search {
49 return value
50 }
51 }
52 return ""
53}
54
55func compileAllowedCORSOrigins(allowedOrigins []string) []*regexp.Regexp {
56 var compiledAllowedOrigins []*regexp.Regexp

Callers 1

CorsConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…