Permalink
Browse files

add back http-duplex into service responses

  • Loading branch information...
1 parent c4c1f69 commit 18808ae2bef1b5797eed6ed1bec363b9d2fdd100 @substack committed Apr 8, 2013
Showing with 4 additions and 3 deletions.
  1. +3 −2 lib/service.js
  2. +1 −1 package.json
View
5 lib/service.js
@@ -1,7 +1,7 @@
var spawn = require('child_process').spawn;
var through = require('through');
-var EventEmitter = require('events').EventEmitter;
var inherits = require('inherits');
+var HttpDuplex = require('http-duplex');
module.exports = function (opts, req, res) {
var service = new Service(opts, req, res);
@@ -20,9 +20,10 @@ var headerRE = {
'upload-pack' : '^\\S+ ([0-9a-fA-F]+)'
};
-inherits(Service, EventEmitter);
+inherits(Service, HttpDuplex);
function Service (opts, req, res) {
+ HttpDuplex.call(this, req, res);
var self = this;
self.headers = req.headers;
View
2 package.json
@@ -1,7 +1,7 @@
{
"name" : "pushover",
"description" : "git push deploy server over http",
- "version" : "1.3.2",
+ "version" : "1.3.3",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/pushover.git"

0 comments on commit 18808ae

Please sign in to comment.