From 815fe886b82d15f70c177015bf84b074adefdec8 Mon Sep 17 00:00:00 2001 From: Rui Hirokawa Date: Wed, 11 Feb 2004 00:45:07 +0000 Subject: [PATCH] fixed a compilation error. --- sapi/apache2handler/sapi_apache2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index e6faeb20b5..ddafafadd9 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -424,7 +424,7 @@ static void php_apache_request_ctor(request_rec *r, php_struct *ctx TSRMLS_DC) ap_set_content_type(r, apr_pstrdup(r->pool, content_type)); efree(content_type); - content_length = (char *) apr_table_get(f->r->headers_in, "Content-Length"); + content_length = (char *) apr_table_get(r->headers_in, "Content-Length"); SG(request_info).content_length = (content_length ? atoi(content_length) : 0); apr_table_unset(r->headers_out, "Content-Length"); -- 2.50.1