Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:visionmedia/express

  • Loading branch information...
commit 1c616e29e22ca1a41d6079214f1f7aaa1b86fa17 2 parents 72b9e48 + cb75184
@tj tj authored
View
1  .gitignore
@@ -16,3 +16,4 @@ testing
.coverage_data
cover_html
test.js
+.idea
View
4 Readme.md
@@ -17,10 +17,6 @@ app.listen(3000);
$ npm install -g express
- To install the 3.0 alpha:
-
- $ npm install -g express@3.0
-
## Quick Start
The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below:
View
6 lib/application.js
@@ -45,8 +45,6 @@ app.init = function(){
*/
app.defaultConfiguration = function(){
- var self = this;
-
// default settings
this.enable('x-powered-by');
this.set('env', process.env.NODE_ENV || 'development');
@@ -103,7 +101,7 @@ app.defaultConfiguration = function(){
*/
app.use = function(route, fn){
- var app, handle;
+ var app;
// default route to '/'
if ('string' != typeof route) fn = route, route = '/';
@@ -404,7 +402,7 @@ app.configure = function(env, fn){
methods.forEach(function(method){
app[method] = function(path){
- if ('get' == method && 1 == arguments.length) return this.set(path);
+ if ('get' == method && 1 == arguments.length) return this.set(path);
var args = [method].concat([].slice.call(arguments));
if (!this._usedRouter) this.use(this.router);
this._router.route.apply(this._router, args);
View
1  lib/response.js
@@ -11,7 +11,6 @@ var http = require('http')
, normalizeTypes = require('./utils').normalizeTypes
, etag = require('./utils').etag
, statusCodes = http.STATUS_CODES
- , send = connect.static.send
, cookie = require('cookie')
, send = require('send')
, mime = connect.mime
Please sign in to comment.
Something went wrong with that request. Please try again.