You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rj...@apache.org on 2009/03/20 18:38:39 UTC
svn commit: r756678 - /httpd/httpd/trunk/modules/metadata/mod_mime_magic.c
Author: rjung
Date: Fri Mar 20 17:38:39 2009
New Revision: 756678
URL: http://svn.apache.org/viewvc?rev=756678&view=rev
Log:
Set the content encoding for compressed content
even if we can't detect the content type of the
uncompressed content.
Modified:
httpd/httpd/trunk/modules/metadata/mod_mime_magic.c
Modified: httpd/httpd/trunk/modules/metadata/mod_mime_magic.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/metadata/mod_mime_magic.c?rev=756678&r1=756677&r2=756678&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/metadata/mod_mime_magic.c (original)
+++ httpd/httpd/trunk/modules/metadata/mod_mime_magic.c Fri Mar 20 17:38:39 2009
@@ -2100,12 +2100,12 @@
return 0;
if ((newsize = uncompress(r, i, &newbuf, nbytes)) > 0) {
+ /* set encoding type in the request record */
+ r->content_encoding = compr[i].encoding;
+
if (tryit(r, newbuf, newsize, 0) != OK) {
return 0;
}
-
- /* set encoding type in the request record */
- r->content_encoding = compr[i].encoding;
}
return 1;
}