{"action":"created","issue":{"url":"https://api.github.com/repos/atmos/camo/issues/79","labels_url":"https://api.github.com/repos/atmos/camo/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/atmos/camo/issues/79/comments","events_url":"https://api.github.com/repos/atmos/camo/issues/79/events","html_url":"https://github.com/atmos/camo/issues/79","id":72458413,"number":79,"title":"Camo not compliant with RFC2046 on case insensitivity","user":{"login":"kereyroper","id":1920094,"avatar_url":"https://avatars.githubusercontent.com/u/1920094?v=3","gravatar_id":"","url":"https://api.github.com/users/kereyroper","html_url":"https://github.com/kereyroper","followers_url":"https://api.github.com/users/kereyroper/followers","following_url":"https://api.github.com/users/kereyroper/following{/other_user}","gists_url":"https://api.github.com/users/kereyroper/gists{/gist_id}","starred_url":"https://api.github.com/users/kereyroper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kereyroper/subscriptions","organizations_url":"https://api.github.com/users/kereyroper/orgs","repos_url":"https://api.github.com/users/kereyroper/repos","events_url":"https://api.github.com/users/kereyroper/events{/privacy}","received_events_url":"https://api.github.com/users/kereyroper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-01T15:39:41Z","updated_at":"2015-05-01T17:45:37Z","closed_at":null,"body":"I saw this error in our logs:\r\nNon-Image content-type returned 'image/JPEG'\r\n\r\nThe code doesn't appear to take case insensitivity of MIME Types into account.\r\nhttps://github.com/atmos/camo/blob/7af31a0eda6d602111c857a007564a4f3f095185/server.coffee#L165\r\n\r\nNor does the mime-types.json, but I don't recommend adding all permutations of case there.\r\n\r\nhttp://tools.ietf.org/html/rfc2046#section-4.2\r\n4.2.  Image Media Type\r\n\r\n   A media type of \"image\" indicates that the body contains an image.\r\n   The subtype names the specific image format.  These names are not\r\n   case sensitive. An initial subtype is \"jpeg\" for the JPEG format\r\n   using JFIF encoding [JPEG]"},"comment":{"url":"https://api.github.com/repos/atmos/camo/issues/comments/98185817","html_url":"https://github.com/atmos/camo/issues/79#issuecomment-98185817","issue_url":"https://api.github.com/repos/atmos/camo/issues/79","id":98185817,"user":{"login":"jlynn","id":850401,"avatar_url":"https://avatars.githubusercontent.com/u/850401?v=3","gravatar_id":"","url":"https://api.github.com/users/jlynn","html_url":"https://github.com/jlynn","followers_url":"https://api.github.com/users/jlynn/followers","following_url":"https://api.github.com/users/jlynn/following{/other_user}","gists_url":"https://api.github.com/users/jlynn/gists{/gist_id}","starred_url":"https://api.github.com/users/jlynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlynn/subscriptions","organizations_url":"https://api.github.com/users/jlynn/orgs","repos_url":"https://api.github.com/users/jlynn/repos","events_url":"https://api.github.com/users/jlynn/events{/privacy}","received_events_url":"https://api.github.com/users/jlynn/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T17:45:37Z","updated_at":"2015-05-01T17:45:37Z","body":":+1: "}}