{"action":"created","issue":{"url":"https://api.github.com/repos/perwendel/spark/issues/143","labels_url":"https://api.github.com/repos/perwendel/spark/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/perwendel/spark/issues/143/comments","events_url":"https://api.github.com/repos/perwendel/spark/issues/143/events","html_url":"https://github.com/perwendel/spark/pull/143","id":33752092,"number":143,"title":"Fix for #85. Static resource when run in Tomcat (or other app server)","user":{"login":"perwendel","id":741279,"avatar_url":"https://avatars.githubusercontent.com/u/741279?v=3","gravatar_id":"","url":"https://api.github.com/users/perwendel","html_url":"https://github.com/perwendel","followers_url":"https://api.github.com/users/perwendel/followers","following_url":"https://api.github.com/users/perwendel/following{/other_user}","gists_url":"https://api.github.com/users/perwendel/gists{/gist_id}","starred_url":"https://api.github.com/users/perwendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perwendel/subscriptions","organizations_url":"https://api.github.com/users/perwendel/orgs","repos_url":"https://api.github.com/users/perwendel/repos","events_url":"https://api.github.com/users/perwendel/events{/privacy}","received_events_url":"https://api.github.com/users/perwendel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-05-18T13:54:33Z","updated_at":"2015-10-22T14:38:28Z","closed_at":"2014-05-18T20:06:52Z","pull_request":{"url":"https://api.github.com/repos/perwendel/spark/pulls/143","html_url":"https://github.com/perwendel/spark/pull/143","diff_url":"https://github.com/perwendel/spark/pull/143.diff","patch_url":"https://github.com/perwendel/spark/pull/143.patch"},"body":"Fix for #85 \r\nPlease review this fix before I'll merge it."},"comment":{"url":"https://api.github.com/repos/perwendel/spark/issues/comments/150244397","html_url":"https://github.com/perwendel/spark/pull/143#issuecomment-150244397","issue_url":"https://api.github.com/repos/perwendel/spark/issues/143","id":150244397,"user":{"login":"Entwanderer","id":14541962,"avatar_url":"https://avatars.githubusercontent.com/u/14541962?v=3","gravatar_id":"","url":"https://api.github.com/users/Entwanderer","html_url":"https://github.com/Entwanderer","followers_url":"https://api.github.com/users/Entwanderer/followers","following_url":"https://api.github.com/users/Entwanderer/following{/other_user}","gists_url":"https://api.github.com/users/Entwanderer/gists{/gist_id}","starred_url":"https://api.github.com/users/Entwanderer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Entwanderer/subscriptions","organizations_url":"https://api.github.com/users/Entwanderer/orgs","repos_url":"https://api.github.com/users/Entwanderer/repos","events_url":"https://api.github.com/users/Entwanderer/events{/privacy}","received_events_url":"https://api.github.com/users/Entwanderer/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T14:38:28Z","updated_at":"2015-10-22T14:38:28Z","body":"I'm using spark with tomcat8. \r\n```javascript\r\nstaticFileLocation(\"/public\")\r\n```\r\nseemed to work.\r\n\r\nBut there is a problem, all the files are served with content type \"text/plain\".\r\nSo when including CSS files with absolute path\r\n```javascript\r\n<link rel=\"stylesheet\" href=\"/example.css\"/>\r\n```\r\n\r\nit will work and be used in FireFox and Chrome. But Chrome throws an error that it must be \"text/css\". And Internet-Explorer (even the newest Edgte-Version) does also so, and is even not loading the CSS!\r\n\r\nSee SEC7113: \"SEC7113 - CSS was ignored due to mime type mismatch\"\r\nhttps://msdn.microsoft.com/en-us/library/hh180764%28v=vs.85%29.aspx\r\n\r\nIs there already a way to activate/configure Content-Types/MIME for static files... ?"}}