[PATCH] Fix for AddOutputFilterByType

Thomas Hurst <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Organization Not much.
Message-ID <[email protected]>
I just applied the following trivial patch to mod_fastcgi 2.4.2 to make
AddOutputFilterByType, and presumably other response content-type based
things work.  I just put it into production on 3 machines serving ~60
requests/second, looks fine.  I'd appreciate if it could be applied for
the next release, which I hope won't be too far away? :)

--- mod_fastcgi.c.old   Mon May 30 14:34:31 2005
+++ mod_fastcgi.c       Mon May 30 14:41:46 2005
@@ -736,7 +736,7 @@
                     goto DuplicateNotAllowed;
                 }
                 hasContentType = TRUE;
-                r->content_type = ap_pstrdup(r->pool, value);
+                ap_set_content_type(r, value);
                 continue;
             }

-- 
Thomas 'Freaky' Hurst
    http://hur.st/

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.