Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove the 0.2.x and 0.3.x compat stuff.

  • Loading branch information...
commit c34dcfc359ed69971e95089ffbdd897f8ec12ae4 1 parent e58f0d3
@TooTallNate TooTallNate authored
Showing with 0 additions and 19 deletions.
  1. +0 −19 static.js
View
19 static.js
@@ -3,25 +3,6 @@ var Path = require('path'),
Fs = require('fs'),
getMime = require('simple-mime')("application/octet-stream");
-// Compat stuff to make this work on the v0.2.x and v0.3.x branches of node
-var StreamProto = require('net').Stream.prototype.__proto__;
-if (!StreamProto.hasOwnProperty('pipe')) {
- var sys = require('sys');
- StreamProto.pipe = function (other) {
- sys.pump(this, other);
- };
-}
-if (!process.EventEmitter.prototype.hasOwnProperty('once')) {
- process.EventEmitter.prototype.once = function (type, listener) {
- var self = this;
- self.on(type, function g() {
- self.removeListener(type, g);
- listener.apply(this, arguments);
- });
- return this;
- };
-}
-
// Super simple static file server
module.exports = function setup(mount, root, index) {
return function (req, res, next) {
Please sign in to comment.
Something went wrong with that request. Please try again.