nodejitsu/nodejitsu-api — pull request #1 by tjanczuk (2011-11-10 22:30:33+00:00)
Title: fix regression in calling nodejitsu apis from behing a proxy

It appears one cannot call nodejitsu APIs from behind a proxy.

I installed jitsu toolset via ```npm install jitsu -g```. After reading https://github.com/nodejitsu/jitsu/pull/106 I configured my proxy server with a call to ```npm config set proxy http://:```. Despite that, ```jitsu signup``` was unable to connect to the nodejitsu host.

I believe the issue is with line https://github.com/nodejitsu/nodejitsu-api/blob/master/node.js/lib/client/client.js#L48 which should be

```proxy = this.options.get('proxy');```

instead of current

```proxy = this.proxy;```

(I verified this change fixes the problem).

The original pull request for issue https://github.com/nodejitsu/jitsu/pull/106 that was merged in fixed the problem correctly, but the fix was subsequently overwritten by https://github.com/nodejitsu/nodejitsu-api/commit/f96f735ebe5d191c1951e2c2a72ecdb83ab7b541.