1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

Prevent ap_add_output_filters_by_type from being called in

ap_set_content_type if the content-type hasn't changed.

Reviewed by:	Ryan Bloom


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Justin Erenkrantz
2002-04-01 22:26:09 +00:00
parent f0d545283c
commit a9960ebdbb
2 changed files with 13 additions and 7 deletions

View File

@@ -1,5 +1,9 @@
Changes with Apache 2.0.35 Changes with Apache 2.0.35
*) Prevent ap_add_output_filters_by_type from being called in
ap_set_content_type if the content-type hasn't changed.
[Justin Erenkrantz]
*) Performance: implemented the bucket allocator made possible by the *) Performance: implemented the bucket allocator made possible by the
API change in 2.0.34. [Cliff Woolley] API change in 2.0.34. [Cliff Woolley]

View File

@@ -1272,6 +1272,7 @@ static void fixup_vary(request_rec *r)
AP_DECLARE(void) ap_set_content_type(request_rec *r, const char *ct) AP_DECLARE(void) ap_set_content_type(request_rec *r, const char *ct)
{ {
if (!r->content_type || strcmp(r->content_type, ct)) {
r->content_type = ct; r->content_type = ct;
/* Insert filters requested by the AddOutputFiltersByType /* Insert filters requested by the AddOutputFiltersByType
@@ -1280,6 +1281,7 @@ AP_DECLARE(void) ap_set_content_type(request_rec *r, const char *ct)
* only then, do we reliably know the content-type. * only then, do we reliably know the content-type.
*/ */
ap_add_output_filters_by_type(r); ap_add_output_filters_by_type(r);
}
} }
typedef struct header_filter_ctx { typedef struct header_filter_ctx {