Developers know that the Drupal determines MIME-type of file by extension, but this is not quite the right way. If I'll change an extension of
*.php file to
*.jpg, then MIME-type will be determined as
image/jpeg but, in fact, it will be the
application/x-httpd-php. The MIME Info module solves this problem.