]> granicus.if.org Git - apache/commit
When trying to detect the content type of the
authorRainer Jung <rjung@apache.org>
Fri, 20 Mar 2009 17:42:26 +0000 (17:42 +0000)
committerRainer Jung <rjung@apache.org>
Fri, 20 Mar 2009 17:42:26 +0000 (17:42 +0000)
commit6a0fba00e4e5f8003680422d3702c64c744ea86f
treeea23203c27c170544c685bb836d4537b234029a5
parent33352114d05c4c64e8461d1d83e82c8990434a67
When trying to detect the content type of the
uncompressed content it is often not enough
to read the same number of bytes, we already
read compressed. Since uncompress() allocates a
new buffer, we can increase the number of bytes
to read to the same size, we use in the case,
where the content isn't compressed.

Furthermore zero-terminate the read data to keep
assumptions consistent with the uncompressed case.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@756683 13f79535-47bb-0310-9956-ffa450edef68
modules/metadata/mod_mime_magic.c