mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Patch size limite of the filetype guesser
This commit is contained in:
@ -107,6 +107,7 @@ func OBIMimeTypeGuesser(stream io.Reader) (*mimetype.MIME, io.Reader, error) {
|
||||
mimetype.Lookup("application/octet-stream").Extend(csv, "text/csv", ".csv")
|
||||
|
||||
// Create a buffer to store the read data
|
||||
mimetype.SetLimit(1024 * 1024)
|
||||
buf := make([]byte, 1024*1024)
|
||||
n, err := io.ReadFull(stream, buf)
|
||||
|
||||
|
Reference in New Issue
Block a user