Description
Vtt file created on Windows (UTF-8 with BOM) is incorrectly detected as text/plain type and it should be text/vtt .
The application using Tika and where the file is uploaded for mime type detection is an Unix machine.
The vtt file is passed as inputstream to the Tika's default detector (we don't want to detect mime type by the file extension).
Please find attached the vtt file that Tika is detecting as text/plain .