MCPcopy Create free account
hub / github.com/apache/httpd / remove_header_do

Function remove_header_do

modules/cache/cache_storage.c:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 return 1;
129}
130static int remove_header_do(void *v, const char *key, const char *val)
131{
132 if ((*key == 'W' || *key == 'w') && !ap_cstr_casecmp(key, "Warning")) {
133 /* any stored Warning headers with warn-code 2xx MUST be retained
134 * in the cache entry and the forwarded response.
135 */
136 }
137 else {
138 apr_table_unset(v, key);
139 }
140 return 1;
141}
142static int add_header_do(void *v, const char *key, const char *val)
143{
144 apr_table_addn(v, key, val);

Callers

nothing calls this directly

Calls 1

ap_cstr_casecmpFunction · 0.85

Tested by

no test coverage detected