Browse Source

Corrected proxy url

pull/14/head
Erik Günther 11 years ago
parent
commit
bebc073cef
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      README.md

+ 2
- 2
README.md View File

@ -44,13 +44,13 @@ dogapi.initialize(options);
### HTTPS Proxy ### HTTPS Proxy
If you are behind a proxy you need to a proxy agent. You can use the https proxy agent from If you are behind a proxy you need to a proxy agent. You can use the https proxy agent from
http://blog.vanamco.com/connecting-via-proxy-node-js/ if you like.
http://blog.vanamco.com/proxy-requests-in-node-js/ if you like.
To configure dogapi with the agent just add it to the options. To configure dogapi with the agent just add it to the options.
```javascript ```javascript
var dogapi = require("dogapi"); var dogapi = require("dogapi");
//Code from http://blog.vanamco.com/connecting-via-proxy-node-js/
//Code from http://blog.vanamco.com/proxy-requests-in-node-js/
var HttpsProxyAgent = require("./httpsproxyagent"); var HttpsProxyAgent = require("./httpsproxyagent");
var agent = new HttpsProxyAgent({ var agent = new HttpsProxyAgent({


Loading…
Cancel
Save