Skip to content

Commit

Permalink
Merge branch 'master' of github.com:visionmedia/express
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 8, 2012
2 parents 72b9e48 + cb75184 commit 1c616e2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -16,3 +16,4 @@ testing
.coverage_data
cover_html
test.js
.idea
4 changes: 0 additions & 4 deletions Readme.md
Expand Up @@ -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:
Expand Down
6 changes: 2 additions & 4 deletions lib/application.js
Expand Up @@ -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');
Expand Down Expand Up @@ -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 = '/';
Expand Down Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion lib/response.js
Expand Up @@ -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
Expand Down

0 comments on commit 1c616e2

Please sign in to comment.