{"action":"created","issue":{"url":"https://api.github.com/repos/svg/svgo/issues/306","labels_url":"https://api.github.com/repos/svg/svgo/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/svg/svgo/issues/306/comments","events_url":"https://api.github.com/repos/svg/svgo/issues/306/events","html_url":"https://github.com/svg/svgo/issues/306","id":55767551,"number":306,"title":"MIME type is text/plain","user":{"login":"dangodev","id":1369770,"avatar_url":"https://avatars.githubusercontent.com/u/1369770?v=3","gravatar_id":"","url":"https://api.github.com/users/dangodev","html_url":"https://github.com/dangodev","followers_url":"https://api.github.com/users/dangodev/followers","following_url":"https://api.github.com/users/dangodev/following{/other_user}","gists_url":"https://api.github.com/users/dangodev/gists{/gist_id}","starred_url":"https://api.github.com/users/dangodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangodev/subscriptions","organizations_url":"https://api.github.com/users/dangodev/orgs","repos_url":"https://api.github.com/users/dangodev/repos","events_url":"https://api.github.com/users/dangodev/events{/privacy}","received_events_url":"https://api.github.com/users/dangodev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-28T15:09:02Z","updated_at":"2015-02-02T20:01:05Z","closed_at":null,"body":"SVG files that initially have a MIME type of `image/svg+xml` become `text/plain` after being touched by SVGO. This kinda throws a bug in scripts I’ve written which need to access MIME type for various purposes such as base64 encoding for web."},"comment":{"url":"https://api.github.com/repos/svg/svgo/issues/comments/72526553","html_url":"https://github.com/svg/svgo/issues/306#issuecomment-72526553","issue_url":"https://api.github.com/repos/svg/svgo/issues/306","id":72526553,"user":{"login":"dangodev","id":1369770,"avatar_url":"https://avatars.githubusercontent.com/u/1369770?v=3","gravatar_id":"","url":"https://api.github.com/users/dangodev","html_url":"https://github.com/dangodev","followers_url":"https://api.github.com/users/dangodev/followers","following_url":"https://api.github.com/users/dangodev/following{/other_user}","gists_url":"https://api.github.com/users/dangodev/gists{/gist_id}","starred_url":"https://api.github.com/users/dangodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangodev/subscriptions","organizations_url":"https://api.github.com/users/dangodev/orgs","repos_url":"https://api.github.com/users/dangodev/repos","events_url":"https://api.github.com/users/dangodev/events{/privacy}","received_events_url":"https://api.github.com/users/dangodev/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T20:01:05Z","updated_at":"2015-02-02T20:01:05Z","body":"Ah—I understand now. I didn’t understand that MIME was a result of file contents, in this case the `<?xml ...>` doctype like you specified. I guess that makes sense—I can’t imagine where else the MIME would exist other than file contents, but that hadn’t occurred to me.\r\n\r\nMight I suggest adding this as a line in the README? It might be useful to other users as well—I searched the README before making this issue and MIME didn’t appear."}}