| 1356 |
*/ |
*/ |
| 1357 |
if (apr_date_checkmask(buffer, "HTTP/#.# ###*")) { |
if (apr_date_checkmask(buffer, "HTTP/#.# ###*")) { |
| 1358 |
int major, minor; |
int major, minor; |
| 1359 |
|
int toclose; |
| 1360 |
|
|
| 1361 |
major = buffer[5] - '0'; |
major = buffer[5] - '0'; |
| 1362 |
minor = buffer[7] - '0'; |
minor = buffer[7] - '0'; |
| 1467 |
te = apr_table_get(r->headers_out, "Transfer-Encoding"); |
te = apr_table_get(r->headers_out, "Transfer-Encoding"); |
| 1468 |
|
|
| 1469 |
/* strip connection listed hop-by-hop headers from response */ |
/* strip connection listed hop-by-hop headers from response */ |
| 1470 |
backend->close = ap_proxy_clear_connection_fn(r, r->headers_out); |
toclose = ap_proxy_clear_connection_fn(r, r->headers_out); |
| 1471 |
|
backend->close = (toclose != 0); |
| 1472 |
|
if (toclose < 0) { |
| 1473 |
|
return ap_proxyerror(r, HTTP_BAD_REQUEST, |
| 1474 |
|
"Malformed connection header"); |
| 1475 |
|
} |
| 1476 |
|
|
| 1477 |
if ((buf = apr_table_get(r->headers_out, "Content-Type"))) { |
if ((buf = apr_table_get(r->headers_out, "Content-Type"))) { |
| 1478 |
ap_set_content_type(r, apr_pstrdup(p, buf)); |
ap_set_content_type(r, apr_pstrdup(p, buf)); |