requests should respect no_proxy env variable
If you want to specify a no_proxy variable in your dockerfile or docker-compose.yml, then this little fix respects the variable in get-requests. Otherwise the proxies could break your docker namespace lookup.
@@ -461,7 +461,7 @@ if __name__ == "__main__":
logger.info(http_headers)
global http_proxyes
- http_proxyes = {}
+ http_proxyes = { "no_proxy": os.getenv("NO_PROXY", "") }
if args.proxy:
http_proxyes['http'] = args.proxy
http_proxyes['https'] = args.proxy
