{"action":"created","issue":{"url":"https://api.github.com/repos/perwendel/spark/issues/618","repository_url":"https://api.github.com/repos/perwendel/spark","labels_url":"https://api.github.com/repos/perwendel/spark/issues/618/labels{/name}","comments_url":"https://api.github.com/repos/perwendel/spark/issues/618/comments","events_url":"https://api.github.com/repos/perwendel/spark/issues/618/events","html_url":"https://github.com/perwendel/spark/pull/618","id":165014231,"number":618,"title":"Bugfix: content-type of static files","user":{"login":"martin-pabst","id":16926407,"avatar_url":"https://avatars.githubusercontent.com/u/16926407?v=3","gravatar_id":"","url":"https://api.github.com/users/martin-pabst","html_url":"https://github.com/martin-pabst","followers_url":"https://api.github.com/users/martin-pabst/followers","following_url":"https://api.github.com/users/martin-pabst/following{/other_user}","gists_url":"https://api.github.com/users/martin-pabst/gists{/gist_id}","starred_url":"https://api.github.com/users/martin-pabst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martin-pabst/subscriptions","organizations_url":"https://api.github.com/users/martin-pabst/orgs","repos_url":"https://api.github.com/users/martin-pabst/repos","events_url":"https://api.github.com/users/martin-pabst/events{/privacy}","received_events_url":"https://api.github.com/users/martin-pabst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-12T07:44:26Z","updated_at":"2016-07-19T15:30:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/perwendel/spark/pulls/618","html_url":"https://github.com/perwendel/spark/pull/618","diff_url":"https://github.com/perwendel/spark/pull/618.diff","patch_url":"https://github.com/perwendel/spark/pull/618.patch"},"body":"Without this commit static files are always served with content-type \"application/octet-stream\" as spark.staticfiles.StaticFilesConfiguration.consumeWithFileResourceHandlers calls spark.staticfiles.MimeType.fromResource to infer the content-type from the filename.\r\nThe latter calls resource.getFilename which falls back to base class implementation (which returns null) in case of ExternalResource."},"comment":{"url":"https://api.github.com/repos/perwendel/spark/issues/comments/233670505","html_url":"https://github.com/perwendel/spark/pull/618#issuecomment-233670505","issue_url":"https://api.github.com/repos/perwendel/spark/issues/618","id":233670505,"user":{"login":"MouettE-SC","id":8431184,"avatar_url":"https://avatars.githubusercontent.com/u/8431184?v=3","gravatar_id":"","url":"https://api.github.com/users/MouettE-SC","html_url":"https://github.com/MouettE-SC","followers_url":"https://api.github.com/users/MouettE-SC/followers","following_url":"https://api.github.com/users/MouettE-SC/following{/other_user}","gists_url":"https://api.github.com/users/MouettE-SC/gists{/gist_id}","starred_url":"https://api.github.com/users/MouettE-SC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MouettE-SC/subscriptions","organizations_url":"https://api.github.com/users/MouettE-SC/orgs","repos_url":"https://api.github.com/users/MouettE-SC/repos","events_url":"https://api.github.com/users/MouettE-SC/events{/privacy}","received_events_url":"https://api.github.com/users/MouettE-SC/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T15:30:28Z","updated_at":"2016-07-19T15:30:28Z","body":"PR #589 solved it and has already been merged into the tree."}}
{"actor":{"display_login":"MouettE-SC"}}