Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated steve to work with connect 2.x

  • Loading branch information...
commit 678b05f17bec4016d5455b56add3f2edbb08ef75 1 parent 6d2b61c
@jetpks jetpks authored
Showing with 7 additions and 2 deletions.
  1. +6 −1 lib/lib/stack.js
  2. +1 −1  lib/package.json
View
7 lib/lib/stack.js
@@ -16,7 +16,11 @@
if (!Array.isArray(middlewares)) {
middlewares = Array.prototype.slice.call(arguments);
}
- return createServer.apply(connect, lowerwares.concat(middlewares));
+ var app = connect();
+ lowerwares.concat(middlewares).forEach(function(lowerware) {
+ app.use(lowerware);
+ });
+ return app;
}
if (!connect) {
@@ -25,6 +29,7 @@
createServer = connect.createServer;
connect.createServer = middlewareHandler;
+
if (!http) {
http = require('http');
}
View
2  lib/package.json
@@ -12,7 +12,7 @@
"node": ">= 0.4.0"
},
"dependencies": {
- "connect": "1.8.x"
+ "connect": ">= 1.8.x"
, "nowww": ">= 1.1.x"
, "connect-xcors": ">= 0.0.0"
, "express-chromeframe": ">= 0.2.0"
Please sign in to comment.
Something went wrong with that request. Please try again.