summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/sapi_apache2.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2010-02-05 18:59:05 +0000
committerRasmus Lerdorf <rasmus@php.net>2010-02-05 18:59:05 +0000
commit1947334023c101fb1ad455dd0e18d44dd5a2ec94 (patch)
treee5c2e81746cfcb2c3328a2000f954809a2f6cfd9 /sapi/apache2handler/sapi_apache2.c
parent3a239b15e94cdec8b2205e0d1f3d3cc9032db457 (diff)
downloadphp-git-1947334023c101fb1ad455dd0e18d44dd5a2ec94.tar.gz
Fix bug #50940
Diffstat (limited to 'sapi/apache2handler/sapi_apache2.c')
-rw-r--r--sapi/apache2handler/sapi_apache2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c
index ff63c72cef..386bef0dbc 100644
--- a/sapi/apache2handler/sapi_apache2.c
+++ b/sapi/apache2handler/sapi_apache2.c
@@ -119,6 +119,8 @@ php_apache_sapi_header_handler(sapi_header_struct *sapi_header, sapi_header_op_e
efree(ctx->content_type);
}
ctx->content_type = estrdup(val);
+ } else if (!strcasecmp(sapi_header->header, "content-length")) {
+ ap_set_content_length(ctx->r, strtol(val, (char **)NULL, 10));
} else if (op == SAPI_HEADER_REPLACE) {
apr_table_set(ctx->r->headers_out, sapi_header->header, val);
} else {