Skip to content

Commit fca9545

Browse files
Added .msg and .doc to skipArchiverMimeTypes, in line with THOG fix (#4544)
1 parent 20dccb6 commit fca9545

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/handlers/handlers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ const (
259259
apkMime mimeType = "application/vnd.android.package-archive"
260260
zipMime mimeType = "application/zip"
261261
jarMime mimeType = "application/java-archive"
262+
msgMime mimeType = "application/vnd.ms-outlook"
263+
docMime mimeType = "application/msword"
262264
)
263265

264266
// skipArchiverMimeTypes is a set of MIME types that should bypass archiver library processing because they are either
@@ -294,6 +296,8 @@ var skipArchiverMimeTypes = map[mimeType]struct{}{
294296
tclTextMime: {},
295297
tclMime: {},
296298
apkMime: {},
299+
msgMime: {},
300+
docMime: {},
297301
}
298302

299303
// selectHandler dynamically selects and configures a FileHandler based on the provided |mimetype| type and archive flag.

0 commit comments

Comments
 (0)