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

Function ap_proxy_clean_warnings

modules/proxy/mod_proxy_http.c:230–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228 return 1;
229}
230static apr_table_t *ap_proxy_clean_warnings(apr_pool_t *p, apr_table_t *headers)
231{
232 header_dptr x;
233 x.pool = p;
234 x.table = NULL;
235 x.time = apr_date_parse_http(apr_table_get(headers, "Date"));
236 apr_table_do(clean_warning_headers, &x, headers, "Warning", NULL);
237 if (x.table != NULL) {
238 apr_table_unset(headers, "Warning");
239 return apr_table_overlay(p, headers, x.table);
240 }
241 else {
242 return headers;
243 }
244}
245
246static void add_te_chunked(apr_pool_t *p,
247 apr_bucket_alloc_t *bucket_alloc,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected