{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/3296","repository_url":"https://api.github.com/repos/kennethreitz/requests","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/3296/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/3296/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/3296/events","html_url":"https://github.com/kennethreitz/requests/issues/3296","id":159287397,"number":3296,"title":"no_proxy env ignored on 302 redirect","user":{"login":"Gaasmann","id":13124500,"avatar_url":"https://avatars.githubusercontent.com/u/13124500?v=3","gravatar_id":"","url":"https://api.github.com/users/Gaasmann","html_url":"https://github.com/Gaasmann","followers_url":"https://api.github.com/users/Gaasmann/followers","following_url":"https://api.github.com/users/Gaasmann/following{/other_user}","gists_url":"https://api.github.com/users/Gaasmann/gists{/gist_id}","starred_url":"https://api.github.com/users/Gaasmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gaasmann/subscriptions","organizations_url":"https://api.github.com/users/Gaasmann/orgs","repos_url":"https://api.github.com/users/Gaasmann/repos","events_url":"https://api.github.com/users/Gaasmann/events{/privacy}","received_events_url":"https://api.github.com/users/Gaasmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-08T22:17:20Z","updated_at":"2016-06-09T08:10:25Z","closed_at":null,"body":"Hello,\r\n\r\nI have a weird problem using Requests and proxies.\r\nI have https_proxy and no_proxy env variable for a domain and it seems the no_proxy is ignored on a HTTP 302 redirect target.\r\nWhat I do is basically:\r\n```\r\ns = requests.Session()\r\nr = s.get(\"https://use-the-proxy.com\")\r\n```\r\nThe response is 302 Found (Location: https://do-not-use-the-proxy.com) and Requests tries to follow.\r\nHere the problem: even if do-not-use-the-proxy.com is present in no_proxy, Requests still use the proxy for the request following a 302(the 302 \"target\").\r\nIf I directly request https://do-not-use-the-proxy.com, the proxy is not used as expected.\r\n\r\nThanks,\r\n\r\n-- \r\nNico"},"comment":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/comments/224827823","html_url":"https://github.com/kennethreitz/requests/issues/3296#issuecomment-224827823","issue_url":"https://api.github.com/repos/kennethreitz/requests/issues/3296","id":224827823,"user":{"login":"Lukasa","id":1382556,"avatar_url":"https://avatars.githubusercontent.com/u/1382556?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukasa","html_url":"https://github.com/Lukasa","followers_url":"https://api.github.com/users/Lukasa/followers","following_url":"https://api.github.com/users/Lukasa/following{/other_user}","gists_url":"https://api.github.com/users/Lukasa/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukasa/subscriptions","organizations_url":"https://api.github.com/users/Lukasa/orgs","repos_url":"https://api.github.com/users/Lukasa/repos","events_url":"https://api.github.com/users/Lukasa/events{/privacy}","received_events_url":"https://api.github.com/users/Lukasa/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T08:10:25Z","updated_at":"2016-06-09T08:10:25Z","body":"What version of requests are you using?"}}
{"actor":{"display_login":"Lukasa"}}