From 3e6bfda0ca1a98a4bff40e720508ad914302a5ab Mon Sep 17 00:00:00 2001 From: James Rhodes Date: Thu, 3 Apr 2014 09:18:42 -0700 Subject: [PATCH] (Celerity) Fix mimetype for JPEG files so IE will load them Summary: IE won't load background images in a page that are served with the mimetype "image/jpg" as it only recognises the "image/jpeg" mimetype. Test Plan: Spent an hour or two going back and forth between Linux (to dev) and Windows (to test) to find the source of this issue, then flipped several tables at IE for being terrible. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D8689 --- src/infrastructure/celerity/CelerityResourceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infrastructure/celerity/CelerityResourceController.php b/src/infrastructure/celerity/CelerityResourceController.php index 7e8ccc299d..4d8d7f6cea 100644 --- a/src/infrastructure/celerity/CelerityResourceController.php +++ b/src/infrastructure/celerity/CelerityResourceController.php @@ -90,7 +90,7 @@ abstract class CelerityResourceController extends PhabricatorController { 'js' => 'text/javascript; charset=utf-8', 'png' => 'image/png', 'gif' => 'image/gif', - 'jpg' => 'image/jpg', + 'jpg' => 'image/jpeg', 'swf' => 'application/x-shockwave-flash', 'woff' => 'font/woff', );