Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request winstonjs#336 from killroy42/fix-http-transport
Browse files Browse the repository at this point in the history
Fixed HTTP Transport inheritance
  • Loading branch information
indexzero committed Dec 27, 2013
2 parents ac11ae7 + 8a24355 commit f7ee20c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/winston/transports/http.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
var util = require('util'),
winston = require('../../winston'),
request = require('request'),
Stream = require('stream').Stream;
Stream = require('stream').Stream,
Transport = require('./transport').Transport;

//
// ### function Http (options)
Expand All @@ -10,6 +11,7 @@ var util = require('util'),
// for persisting log messages and metadata to a terminal or TTY.
//
var Http = exports.Http = function (options) {
Transport.call(this, options);
options = options || {};

this.name = 'http';
Expand Down

0 comments on commit f7ee20c

Please sign in to comment.