Permalink
Browse files

@gabrielf PR #59 merged - bug fix for issue #58

  • Loading branch information...
1 parent 0377b78 commit 9dcfe25e2e3df73619ee32413bbc003532a88ee8 @mansilladev mansilladev committed Mar 28, 2014
Showing with 3 additions and 1 deletion.
  1. +2 −1 app.js
  2. +1 −0 package.json
View
3 app.js
@@ -35,6 +35,7 @@ var express = require('express'),
http = require('http'),
https = require('https'),
crypto = require('crypto'),
+ clone = require('clone'),
redis = require('redis'),
RedisStore = require('connect-redis')(express);
@@ -564,7 +565,7 @@ function processRequest(req, res, next) {
var paramString = query.stringify(params),
privateReqURL = apiConfig.protocol + '://' + apiConfig.baseURL + apiConfig.privatePath + methodURL + ((paramString.length > 0) ? '?' + paramString : ""),
options = {
- headers: headers,
+ headers: clone(apiConfig.headers),
protocol: apiConfig.protocol + ':',
host: baseHostUrl,
port: baseHostPort,
View
@@ -23,6 +23,7 @@
"url": "git://github.com/mashery/iodocs.git"
},
"dependencies": {
+ "clone": "0.1.1",
"connect-redis": "1.0.6",
"express": "3.3.1",
"jade": "0.32.0",

0 comments on commit 9dcfe25

Please sign in to comment.