httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r756678 - /httpd/httpd/trunk/modules/metadata/mod_mime_magic.c
Date Fri, 20 Mar 2009 17:38:39 GMT
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;
 }



Mime
View raw message