Skip to content

Commit

Permalink
[fix] s/self/this. Fixes #470. Fixes #471.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Oct 6, 2014
1 parent 733d86f commit d10cbc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/winston/transports/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Http.prototype._request = function (options, callback) {
delete options.path;

// Prepare options for outgoing HTTP request
req = (self.ssl ? https : http).request({
req = (this.ssl ? https : http).request({
host: this.host,
port: this.port,
path: path.replace(/^\//, ''),
Expand All @@ -61,7 +61,6 @@ Http.prototype._request = function (options, callback) {
req.end(new Buffer(JSON.stringify(options), 'utf8'));

req.on('error', callback);

req.on('response', function (res) {
res.on('end', function () {
callback(null, res);
Expand Down

0 comments on commit d10cbc0

Please sign in to comment.