Give priority to mime type header, except for octet-stream.