From 78bed51da6f556386b9fd4f56114f7046434e221 Mon Sep 17 00:00:00 2001 From: Gautam K Date: Tue, 30 Oct 2012 09:18:37 +0530 Subject: [PATCH] A small hack to fix issue #53 /~https://github.com/mashery/iodocs/issues/53 --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index d58e6116..cee40a3a 100755 --- a/app.js +++ b/app.js @@ -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;