Skip to content

Commit a0c0945

Browse files
committed
Treat x-archive (i.e. foo.a) as binary
1 parent 73a293f commit a0c0945

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/files.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ pub(crate) fn guess_content(
185185
// See
186186
// <https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types/Common_types>
187187
// for a list of MIME types.
188+
"application/x-archive" => return ProbableFileKind::Binary,
188189
"application/x-bzip" => return ProbableFileKind::Binary,
189190
"application/x-bzip2" => return ProbableFileKind::Binary,
190191
"application/x-7zip-compressed" => return ProbableFileKind::Binary,

0 commit comments

Comments
 (0)