Permalink
Browse files

Fixed bug so params can be put in Request Headers

  • Loading branch information...
1 parent 41849ff commit 83a7d607400727a8b67271b35f5e0b9b75fb804b @alexadkins alexadkins committed Jun 18, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 app.js
View
@@ -567,13 +567,14 @@ function processRequest(req, res, next) {
for (var customHeader in customHeaders) {
if (customHeaders.hasOwnProperty(customHeader)) {
headers[customHeader] = customHeaders[customHeader];
+
}
}
var paramString = query.stringify(params),
privateReqURL = apiConfig.protocol + '://' + apiConfig.baseURL + apiConfig.privatePath + methodURL + ((paramString.length > 0) ? '?' + paramString : ""),
options = {
- headers: clone(apiConfig.headers),
+ headers: clone(headers),
protocol: apiConfig.protocol + ':',
host: baseHostUrl,
port: baseHostPort,

0 comments on commit 83a7d60

Please sign in to comment.