{"action":"reopened","issue":{"url":"https://api.github.com/repos/einaregilsson/Redirector/issues/101","repository_url":"https://api.github.com/repos/einaregilsson/Redirector","labels_url":"https://api.github.com/repos/einaregilsson/Redirector/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/einaregilsson/Redirector/issues/101/comments","events_url":"https://api.github.com/repos/einaregilsson/Redirector/issues/101/events","html_url":"https://github.com/einaregilsson/Redirector/issues/101","id":234320840,"number":101,"title":"What is causing this Startpage Image search behaviour?","user":{"login":"LeLobster","id":11016915,"avatar_url":"https://avatars2.githubusercontent.com/u/11016915?v=3","gravatar_id":"","url":"https://api.github.com/users/LeLobster","html_url":"https://github.com/LeLobster","followers_url":"https://api.github.com/users/LeLobster/followers","following_url":"https://api.github.com/users/LeLobster/following{/other_user}","gists_url":"https://api.github.com/users/LeLobster/gists{/gist_id}","starred_url":"https://api.github.com/users/LeLobster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeLobster/subscriptions","organizations_url":"https://api.github.com/users/LeLobster/orgs","repos_url":"https://api.github.com/users/LeLobster/repos","events_url":"https://api.github.com/users/LeLobster/events{/privacy}","received_events_url":"https://api.github.com/users/LeLobster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-07T19:43:41Z","updated_at":"2017-06-13T21:05:18Z","closed_at":null,"body":"I've created a redirect for Startpage's annoying image search proxying, but the images are broken when saved to disk unless I reload the page after it redirected the request from the proxy to the original image url.\r\n\r\n```\r\n{\r\n    \"createdBy\": \"Redirector v3.1.0\",\r\n    \"createdAt\": \"2017-06-07T19:38:11.132Z\",\r\n    \"redirects\": [\r\n        {\r\n            \"description\": \"Startpage Image Search\",\r\n            \"exampleUrl\": \"https://ixquick-proxy.com/do/spg/show_picture=http://1.jpg&sp=2a3b\",\r\n            \"exampleResult\": \"http://1.jpg\",\r\n            \"error\": null,\r\n            \"includePattern\": \".*ixquick-proxy.*show_picture.*=(http[s]?(:|%3A).*[.]\\\\w{3})(&sp=\\\\w*)?\",\r\n            \"excludePattern\": \"\",\r\n            \"redirectUrl\": \"$1\",\r\n            \"patternType\": \"R\",\r\n            \"processMatches\": \"urlDecode\",\r\n            \"disabled\": false,\r\n            \"appliesTo\": [\r\n                \"main_frame\"\r\n            ]\r\n        }\r\n    ]\r\n}\r\n```\r\nExample url:\r\n`https://ixquick-proxy.com/do/spg/show_picture.pl?l=english&rais=1&oiu=http%3A%2F%2Fwww.lessons4living.com%2Fimages%2Fpenclchk.gif&sp=2063c7f3426a38c0261cd82be8591509`\r\n\r\nWhen trying to save the above image to disk it's appearing as `show_picture.pl.gif`, which is an unusable/broken image.  \r\nAfter a reload of the redirected url the saved picture is fine.\r\n\r\nBrowser log from the first redirect:\r\n```\r\n\"REDIRECTOR: Checking: main_frame: https://ixquick-proxy.com/do/spg/show_picture.pl?l=english&rais=1&oiu=http%3A%2F%2Fwww.lessons4living.com%2Fimages%2Fpenclchk.gif&sp=2063c7f3426a38c0261cd82be8591509\"  background.js:6:3\r\n\"REDIRECTOR: Redirecting https://ixquick-proxy.com/do/spg/show_picture.pl?l=english&rais=1&oiu=http%3A%2F%2Fwww.lessons4living.com%2Fimages%2Fpenclchk.gif&sp=2063c7f3426a38c0261cd82be8591509 ===> http://www.lessons4living.com/images/penclchk.gif, type: main_frame, pattern: .*ixquick-proxy.*show_picture.*=(http[s]?(:|%3A).*[.]\\w{3})(&sp=\\w*)?\"  background.js:6:3\r\nGET \r\nhttps://ixquick-proxy.com/do/spg/show_picture.pl [HTTP/1.1 200 OK 129ms]\r\n\"REDIRECTOR: Checking: main_frame: http://www.lessons4living.com/images/penclchk.gif\"  background.js:6:3\r\n\"REDIRECTOR: Ignoring http://www.lessons4living.com/images/penclchk.gif, was just redirected 347ms ago\"  background.js:6:3\r\nGET \r\nhttp://www.lessons4living.com/images/penclchk.gif [HTTP/1.1 200 OK 0ms]\r\nGET \r\nhttp://www.lessons4living.com/images/penclchk.gif [HTTP/1.1 200 OK 0ms]\r\n```\r\n\r\nI'm not really knowledgeable in this kind of stuff but it looks like it still sends the original GET request after it should've redirected the url."}}
{"actor":{"display_login":"LeLobster"}}