From d1d146e8a5bb73dcb01579ad433f6d4f70b668ea Mon Sep 17 00:00:00 2001 From: indexzero Date: Mon, 6 Oct 2014 16:41:22 -0400 Subject: [PATCH] [minor] Do not redefine `options`. --- lib/winston/transports/http.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/winston/transports/http.js b/lib/winston/transports/http.js index 9dd4c5a8e..5ddc5a43f 100644 --- a/lib/winston/transports/http.js +++ b/lib/winston/transports/http.js @@ -41,8 +41,9 @@ Http.prototype.name = 'http'; // handle json-rpc. // Http.prototype._request = function (options, callback) { - var options = options || {}, - auth = options.auth || this.auth, + options = options || {}; + + var auth = options.auth || this.auth, path = options.path || this.path || ''; delete options.auth;