file: recognize zlib compression

front
cinap_lenrek 2011-10-16 00:45:08 +02:00
parent a7768bd61f
commit 403dee333e
1 changed files with 3 additions and 0 deletions

View File

@ -1179,6 +1179,9 @@ ismung(void)
else
if(buf[0]=='B' && buf[1]=='Z' && buf[2]=='h')
print(mime ? "application/x-bzip2" : "bzip2 compressed\n");
else
if(buf[0]==0x78 && buf[1]==0x9c)
print(mime ? "application/x-deflate" : "zlib compressed\n");
else
print(mime ? OCTET : "encrypted\n");
return 1;