Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dgofman committed Jan 28, 2016
1 parent e0b4ac9 commit 05ab6b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function proxy(opts, req, res) {
'Cache-Control': 'no-cache',
'Content-Type': 'application/json;charset=UTF-8'
},
timeout: opts.timeout !== undefined ? opts.timeout : process.env.TIMEOUT || 20000, //default timwe out 20 seconds, zero - no timeout
timeout: Number(opts.timeout !== undefined ? opts.timeout : process.env.TIMEOUT || 20000), //default timwe out 20 seconds, zero - no timeout

request: function(callback, method, path, data, query) {

Expand Down Expand Up @@ -131,4 +131,4 @@ function proxy(opts, req, res) {
* @module proxy
* @see {@link proxy}
*/
module.exports = proxy;
module.exports = proxy;

0 comments on commit 05ab6b6

Please sign in to comment.