Comment 2 for bug 445433

Revision history for this message
Thomas Waldmann (tw-public) wrote :

detecting the content-type from file contents is always black magic and not always successful.

a related idea might be to guess the type from the file extension (if -i is used and not stdin).
but the next problem then is that every pastebin wants to be told about the format/content-type in a slightly different way.