{"action":"opened","issue":{"url":"https://api.github.com/repos/mileszs/wicked_pdf/issues/556","repository_url":"https://api.github.com/repos/mileszs/wicked_pdf","labels_url":"https://api.github.com/repos/mileszs/wicked_pdf/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/mileszs/wicked_pdf/issues/556/comments","events_url":"https://api.github.com/repos/mileszs/wicked_pdf/issues/556/events","html_url":"https://github.com/mileszs/wicked_pdf/issues/556","id":165993820,"number":556,"title":"Auto-appending \"css\" extension breaks remote URLs","user":{"login":"sethvargo","id":408570,"avatar_url":"https://avatars.githubusercontent.com/u/408570?v=3","gravatar_id":"","url":"https://api.github.com/users/sethvargo","html_url":"https://github.com/sethvargo","followers_url":"https://api.github.com/users/sethvargo/followers","following_url":"https://api.github.com/users/sethvargo/following{/other_user}","gists_url":"https://api.github.com/users/sethvargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sethvargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethvargo/subscriptions","organizations_url":"https://api.github.com/users/sethvargo/orgs","repos_url":"https://api.github.com/users/sethvargo/repos","events_url":"https://api.github.com/users/sethvargo/events{/privacy}","received_events_url":"https://api.github.com/users/sethvargo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-17T20:21:44Z","updated_at":"2016-07-17T20:21:44Z","closed_at":null,"body":"Hi there,\r\n\r\nI noticed that it's not possible to specify a remote URL that's a CSS resource unless that URL ends in CSS. This is especially problematic for Google Fonts, since they do not end in such an extension.\r\n\r\nI believe this is being caused by [this line here](https://github.com/mileszs/wicked_pdf/blob/f133eb05c43a4614a174d1ae2275077f0ca0cac0/lib/wicked_pdf/wicked_pdf_helper/assets.rb#L17), which the library decides to append \"css\" to the extension (fwiw, it does the same for js too).\r\n\r\nIf I understand correctly, this is because of how the local asset search works, but I don't think the postfixing should be applied to remote paths."}}
{"actor":{"display_login":"sethvargo"}}