cvs: php4 /sapi/apache2filter sapi_apache2.c

From: Date: Fri, 27 Oct 2000 12:52:38 +0000
Subject: cvs: php4 /sapi/apache2filter sapi_apache2.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2301@lists.php.net to get a copy of this message
sas Fri Oct 27 05:52:38 2000 EDT Modified files: /php4/sapi/apache2filter sapi_apache2.c Log: Apache 2.0 does some funky internal caching which works for static content, but fails miserably in our context. Index: php4/sapi/apache2filter/sapi_apache2.c diff -u php4/sapi/apache2filter/sapi_apache2.c:1.6 php4/sapi/apache2filter/sapi_apache2.c:1.7 --- php4/sapi/apache2filter/sapi_apache2.c:1.6 Fri Oct 27 05:37:05 2000 +++ php4/sapi/apache2filter/sapi_apache2.c Fri Oct 27 05:52:38 2000 @@ -212,8 +212,10 @@ content_type = sapi_get_default_content_type(SLS_C); f->r->content_type = apr_pstrdup(f->r->pool, content_type); efree(content_type); - apr_table_set(f->r->headers_in, "Connection", "close"); + apr_table_unset(f->r->headers_in, "Connection"); apr_table_unset(f->r->headers_out, "Content-Length"); + apr_table_unset(f->r->headers_out, "Last-Modified"); + apr_table_unset(f->r->headers_out, "Expires"); auth = apr_table_get(f->r->headers_in, "Authorization"); php_handle_auth_data(auth SLS_CC); } @@ -282,7 +284,12 @@ #endif smart_str_free(&content); + goto ok; skip_execution: +#define NO_DATA "php_filter did not get ANY data" + eos = ap_bucket_create_transient(NO_DATA, sizeof(NO_DATA)-1); + AP_BRIGADE_INSERT_HEAD(bb, eos); +ok: php_request_shutdown(NULL); /* Pass EOS bucket to next filter to signal end of request */

« previous php.cvs (#2301) next »