Skip to content

Commit

Permalink
[minor] Do not redefine options.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Oct 6, 2014
1 parent d10cbc0 commit d1d146e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/winston/transports/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d1d146e

Please sign in to comment.