file: recognize zlib compression
This commit is contained in:
parent
a7768bd61f
commit
403dee333e
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue