]> granicus.if.org Git - php/commitdiff
fixed a compilation error.
authorRui Hirokawa <hirokawa@php.net>
Wed, 11 Feb 2004 00:45:07 +0000 (00:45 +0000)
committerRui Hirokawa <hirokawa@php.net>
Wed, 11 Feb 2004 00:45:07 +0000 (00:45 +0000)
sapi/apache2handler/sapi_apache2.c

index e6faeb20b50fb912a2b7c28bbd9df2e25b2ee308..ddafafadd9907b88c9c8e05c2b6ae52ab46f5e70 100644 (file)
@@ -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");