Skip to content

Commit e03fe7c

Browse files
committed
Add one more byte for the gzip signature
1 parent 4ca68bd commit e03fe7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

file/sniffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const fileSignatures = {
2626
'application/pdf': [[0x25, 0x50, 0x44, 0x46, 0x2d]], // '%PDF-'
2727

2828
// Archive formats:
29-
'application/gzip': [[0x1F, 0x8B]],
29+
'application/gzip': [[0x1F, 0x8B, 0x08]],
3030
'application/x-tar': [ // 'ustar'
3131
[0x75, 0x73, 0x74, 0x61, 0x72, 0x00, 0x30, 0x30],
3232
[0x75, 0x73, 0x74, 0x61, 0x72, 0x20, 0x20, 0x00],

0 commit comments

Comments
 (0)