Skip to content

Commit

Permalink
A small hack to fix issue mashery#53
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam K committed Oct 30, 2012
1 parent b8ff020 commit 78bed51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,9 @@ function processRequest(req, res, next) {

options.headers = headers;
}

if(options.headers === void 0){
options.headers = {}
}
if (!options.headers['Content-Length']) {
if (requestBody) {
options.headers['Content-Length'] = requestBody.length;
Expand Down

0 comments on commit 78bed51

Please sign in to comment.