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

Function cache_merge_headers_out

modules/cache/cache_util.c:1267–1289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1265}
1266
1267apr_table_t *cache_merge_headers_out(request_rec *r)
1268{
1269 apr_table_t *headers_out;
1270
1271 headers_out = apr_table_overlay(r->pool, r->headers_out,
1272 r->err_headers_out);
1273
1274 if (r->content_type
1275 && !apr_table_get(headers_out, "Content-Type")) {
1276 const char *ctype = ap_make_content_type(r, r->content_type);
1277 if (ctype) {
1278 apr_table_setn(headers_out, "Content-Type", ctype);
1279 }
1280 }
1281
1282 if (r->content_encoding
1283 && !apr_table_get(headers_out, "Content-Encoding")) {
1284 apr_table_setn(headers_out, "Content-Encoding",
1285 r->content_encoding);
1286 }
1287
1288 return headers_out;
1289}
1290
1291typedef struct
1292{

Callers 2

cache_save_filterFunction · 0.85

Calls 1

ap_make_content_typeFunction · 0.85

Tested by

no test coverage detected