The standard UNIX tools (file command) return text/x-c++ . This is not the biggest result.
On Windows, urlmon.dll / FindMimeFromData returns text/plain . It seems like Windows never got a decent library of file type recognition.
Is there anything more accurate than text/plain ?
source share