Bump buffer size to 8K to allow for more custom file matching

This commit is contained in:
Shaun Dunning
2018-11-07 21:20:29 -05:00
parent 5679eebfe7
commit 61e4d0f5d7
+1 -1
View File
@@ -53,7 +53,7 @@ func MatchFile(filepath string) (types.Type, error) {
// MatchReader is convenient wrapper to Match() any Reader
func MatchReader(reader io.Reader) (types.Type, error) {
buffer := make([]byte, 4096) // just make msooxml test happy, but 4096 bytes maybe not enough to determine the real type
buffer := make([]byte, 8192) // just make msooxml test happy, but 4096 bytes maybe not enough to determine the real type
_, err := reader.Read(buffer)
if err != nil && err != io.EOF {