]> granicus.if.org Git - php/commitdiff
MFH: fixed a compilation error.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 11 Feb 2004 16:53:03 +0000 (16:53 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 11 Feb 2004 16:53:03 +0000 (16:53 +0000)
sapi/apache2handler/sapi_apache2.c

index fd5a117819fc0107cfd4bea30ca7bc3b4bb56f0b..1859034372ff96ea1c0466b15f2fc908648163b6 100644 (file)
@@ -429,7 +429,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");