{"action":"created","issue":{"url":"https://api.github.com/repos/redmatrix/redmatrix/issues/255","labels_url":"https://api.github.com/repos/redmatrix/redmatrix/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/redmatrix/redmatrix/issues/255/comments","events_url":"https://api.github.com/repos/redmatrix/redmatrix/issues/255/events","html_url":"https://github.com/redmatrix/redmatrix/issues/255","id":66372512,"number":255,"title":"Sslify doesn't forward the content-type as expected, breaking the display of some formats","user":{"login":"jeroenpraat","id":3049892,"avatar_url":"https://avatars.githubusercontent.com/u/3049892?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenpraat","html_url":"https://github.com/jeroenpraat","followers_url":"https://api.github.com/users/jeroenpraat/followers","following_url":"https://api.github.com/users/jeroenpraat/following{/other_user}","gists_url":"https://api.github.com/users/jeroenpraat/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenpraat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenpraat/subscriptions","organizations_url":"https://api.github.com/users/jeroenpraat/orgs","repos_url":"https://api.github.com/users/jeroenpraat/repos","events_url":"https://api.github.com/users/jeroenpraat/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenpraat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-04T22:12:13Z","updated_at":"2015-04-04T22:12:15Z","closed_at":null,"body":"_From @solstag on November 19, 2014 4:17_\n\nOriginated from a discussion here: https://mobiliza.org.br/channel/aleabdo/?f=&mid=a6c6fded7ac531085230de65e8a0358b5fd7412a5912132937bdc5a5c760b88d@mobiliza.org.br\r\n\r\nSslify is not forwarding the Content-Type as expected, see\r\n\r\n```bash\r\ncurl -I \"https://mobiliza.org.br/sslify?f=&url=http%3A%2F%2F2014.okfestival.org%2Fwp-content%2Fthemes%2Fokfest-2014%2Fimg%2Fokfest-logo.svg\"\r\ncurl -I \"https://mobiliza.org.br/sslify?f=&url=http%3A%2F%2Fi1.ytimg.com%2Fvi%2F6_nFuJAF5F0%2Fmaxresdefault.jpg\"\r\n```\r\n\r\nMajor consequence is: when the browser can't correctly guess the image type, displaying fails.\r\n\r\nSo for JPEGs it looks like it's working because the browser is smart enough to guess the type from the content. Also for an SVG loaded on its own. But it fails for SVG inside an <img> tag.\r\n\r\nSo this seems to need a fix.\r\n\r\nAnother thing would be to fix the file extension for people wanting to save the files that go through Sslify.\r\n\r\nCurrently if you change \"/sslify\" in the url to \"/sslify/whatever.svg\" it all works fine, so perhaps all we need is to change the sslify url generator to include the original filename before the parameters.\r\n\r\nNote that if you fix the file extension issue, the issue with SVG also vanishes because the browser is now capable of guessing the Content-Type from the file extension, so this would be a workaround.\n\n_Copied from original issue: friendica/red#704_"},"comment":{"url":"https://api.github.com/repos/redmatrix/redmatrix/issues/comments/89672149","html_url":"https://github.com/redmatrix/redmatrix/issues/255#issuecomment-89672149","issue_url":"https://api.github.com/repos/redmatrix/redmatrix/issues/255","id":89672149,"user":{"login":"jeroenpraat","id":3049892,"avatar_url":"https://avatars.githubusercontent.com/u/3049892?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenpraat","html_url":"https://github.com/jeroenpraat","followers_url":"https://api.github.com/users/jeroenpraat/followers","following_url":"https://api.github.com/users/jeroenpraat/following{/other_user}","gists_url":"https://api.github.com/users/jeroenpraat/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenpraat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenpraat/subscriptions","organizations_url":"https://api.github.com/users/jeroenpraat/orgs","repos_url":"https://api.github.com/users/jeroenpraat/repos","events_url":"https://api.github.com/users/jeroenpraat/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenpraat/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T22:12:14Z","updated_at":"2015-04-04T22:12:14Z","body":"_From @solstag on January 25, 2015 3:59_\n\nIt's fixed, awesome. The other thing that could be improved is the thing about the file name and saving. I'm going to leave this open as I commit a patch I've already created for that. Thanks pafcu!"}}