{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1611","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1611/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1611/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1611/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/1611","id":88470030,"number":1611,"title":"Failed to decode downloaded font on Heroku","user":{"login":"mraible","id":17892,"avatar_url":"https://avatars.githubusercontent.com/u/17892?v=3","gravatar_id":"","url":"https://api.github.com/users/mraible","html_url":"https://github.com/mraible","followers_url":"https://api.github.com/users/mraible/followers","following_url":"https://api.github.com/users/mraible/following{/other_user}","gists_url":"https://api.github.com/users/mraible/gists{/gist_id}","starred_url":"https://api.github.com/users/mraible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mraible/subscriptions","organizations_url":"https://api.github.com/users/mraible/orgs","repos_url":"https://api.github.com/users/mraible/repos","events_url":"https://api.github.com/users/mraible/events{/privacy}","received_events_url":"https://api.github.com/users/mraible/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/milestones/57","html_url":"https://github.com/jhipster/generator-jhipster/milestones/2.20.0","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/milestones/57/labels","id":1266464,"number":57,"title":"2.20.0","description":"","creator":{"login":"jdubois","id":316835,"avatar_url":"https://avatars.githubusercontent.com/u/316835?v=3","gravatar_id":"","url":"https://api.github.com/users/jdubois","html_url":"https://github.com/jdubois","followers_url":"https://api.github.com/users/jdubois/followers","following_url":"https://api.github.com/users/jdubois/following{/other_user}","gists_url":"https://api.github.com/users/jdubois/gists{/gist_id}","starred_url":"https://api.github.com/users/jdubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdubois/subscriptions","organizations_url":"https://api.github.com/users/jdubois/orgs","repos_url":"https://api.github.com/users/jdubois/repos","events_url":"https://api.github.com/users/jdubois/events{/privacy}","received_events_url":"https://api.github.com/users/jdubois/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":83,"state":"closed","created_at":"2015-08-21T15:05:48Z","updated_at":"2015-08-25T10:51:37Z","due_on":null,"closed_at":"2015-08-25T10:51:37Z"},"comments":17,"created_at":"2015-06-15T16:07:04Z","updated_at":"2015-10-21T20:10:42Z","closed_at":"2015-08-10T12:26:17Z","body":"I'm using some custom fonts from http://themeforest.net/item/angulr-bootstrap-admin-web-app-with-angularjs/8437259 in my JHipster application.\r\n\r\nI'm seeing the following warning in Chrome Developer Tools when I access my JHipster application at http://www.jhipster-book.com. I don't see this error when running locally.\r\n\r\n```\r\nFailed to decode downloaded font: http://www.jhipster-book.com/assets/fonts/sourcesanspro/sourcesanspro.woff\r\n```\r\n\r\nI'm using these same fonts on a client's project (that runs on GAE) and it works fine.\r\n\r\nI posted this issue to StackOverflow and help.heroku.com.\r\n\r\nhttp://stackoverflow.com/questions/30837327/failed-to-decode-downloaded-font-on-heroku\r\n\r\nAccording to Heroku, \"Our router will never set the Content-Type header itself. It's your app's responsibility to do that.\"\r\n\r\nDoes JHipster include a filter that can be used to set this mime-type?"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/150011260","html_url":"https://github.com/jhipster/generator-jhipster/issues/1611#issuecomment-150011260","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1611","id":150011260,"user":{"login":"mraible","id":17892,"avatar_url":"https://avatars.githubusercontent.com/u/17892?v=3","gravatar_id":"","url":"https://api.github.com/users/mraible","html_url":"https://github.com/mraible","followers_url":"https://api.github.com/users/mraible/followers","following_url":"https://api.github.com/users/mraible/following{/other_user}","gists_url":"https://api.github.com/users/mraible/gists{/gist_id}","starred_url":"https://api.github.com/users/mraible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mraible/subscriptions","organizations_url":"https://api.github.com/users/mraible/orgs","repos_url":"https://api.github.com/users/mraible/repos","events_url":"https://api.github.com/users/mraible/events{/privacy}","received_events_url":"https://api.github.com/users/mraible/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T20:10:41Z","updated_at":"2015-10-21T20:10:41Z","body":"This actually might be a JHipster issue, caused by its `.gitattributes` file. I noticed this file has `* text eol=lf` and the font file I'm using uses CRLFs. If I re-copy the font file from the Angulr theme I'm using and deploy, everything works. However, if I do a clean checkout from Git, the font is corrupted. "}}