file: recognize zlib compression
parent
a7768bd61f
commit
403dee333e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue