{"action":"created","issue":{"url":"https://api.github.com/repos/kevva/download/issues/64","labels_url":"https://api.github.com/repos/kevva/download/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/kevva/download/issues/64/comments","events_url":"https://api.github.com/repos/kevva/download/issues/64/events","html_url":"https://github.com/kevva/download/issues/64","id":86638848,"number":64,"title":"support proxies","user":{"login":"totof129","id":12815090,"avatar_url":"https://avatars.githubusercontent.com/u/12815090?v=3","gravatar_id":"","url":"https://api.github.com/users/totof129","html_url":"https://github.com/totof129","followers_url":"https://api.github.com/users/totof129/followers","following_url":"https://api.github.com/users/totof129/following{/other_user}","gists_url":"https://api.github.com/users/totof129/gists{/gist_id}","starred_url":"https://api.github.com/users/totof129/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totof129/subscriptions","organizations_url":"https://api.github.com/users/totof129/orgs","repos_url":"https://api.github.com/users/totof129/repos","events_url":"https://api.github.com/users/totof129/events{/privacy}","received_events_url":"https://api.github.com/users/totof129/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-06-09T15:31:36Z","updated_at":"2015-11-24T21:12:04Z","closed_at":null,"body":"download should call got module using tunnel agent when user is behind a corporate proxy"},"comment":{"url":"https://api.github.com/repos/kevva/download/issues/comments/159406425","html_url":"https://github.com/kevva/download/issues/64#issuecomment-159406425","issue_url":"https://api.github.com/repos/kevva/download/issues/64","id":159406425,"user":{"login":"marc-guenther","id":393230,"avatar_url":"https://avatars.githubusercontent.com/u/393230?v=3","gravatar_id":"","url":"https://api.github.com/users/marc-guenther","html_url":"https://github.com/marc-guenther","followers_url":"https://api.github.com/users/marc-guenther/followers","following_url":"https://api.github.com/users/marc-guenther/following{/other_user}","gists_url":"https://api.github.com/users/marc-guenther/gists{/gist_id}","starred_url":"https://api.github.com/users/marc-guenther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marc-guenther/subscriptions","organizations_url":"https://api.github.com/users/marc-guenther/orgs","repos_url":"https://api.github.com/users/marc-guenther/repos","events_url":"https://api.github.com/users/marc-guenther/events{/privacy}","received_events_url":"https://api.github.com/users/marc-guenther/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T21:12:04Z","updated_at":"2015-11-24T21:12:04Z","body":"So, when I try to download via `https` like this:\r\n\r\n    var Download = require('download');\r\n    new Download().get('https://raw.github.com/imagemin/optipng-bin/v3.0.3/vendor/osx/optipng').dest('tmp').run()\r\n\r\nit works, but when I set a proxy:\r\n\r\n    https_proxy=http://mylocalproxy:3128 node download.js\r\nand look at the network traffic, I see that it tells the proxy to connect to port 80:\r\n\r\n    CONNECT raw.github.com:80 HTTP/1.1\r\n\r\nbut it then continues to talk SSL, which of course confuses the server completely.\r\n\r\nIt works when I specify the port in the github url above: `https://raw.github.com:443/...`\r\n\r\nThis seems to be a problem in `tunnel-agent`, which fails to set the `defaultPort` to 443 for it's `https` agents... (maybe [this](https://github.com/mikeal/tunnel-agent/issues/14) issue?)"}}