| 1265 | } |
| 1266 | |
| 1267 | apr_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 | |
| 1291 | typedef struct |
| 1292 | { |
no test coverage detected