Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parents 72b9e48, cb75184 · Browse files · 4 files+3 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+3 added−9 removed

  • other:+3 added−9 removed

4 files+3 added−9 removed

modified:lib/application.js+2 added-4 removed
43 unmodified lines
44 * @api private45 */4647app.defaultConfiguration = function(){48 var self = this;4948 // default settings49 this.enable('x-powered-by');50 this.set('env', process.env.NODE_ENV || 'development');51 debug('booting in %s mode', this.get('env'));
48 unmodified lines
100 * @api public101 */102103app.use = function(route, fn){106 var app, handle;104 var app;105106 // default route to '/'107 if ('string' != typeof route) fn = route, route = '/';108
292 unmodified lines
401 */402403methods.forEach(function(method){404 app[method] = function(path){407 if ('get' == method && 1 == arguments.length) return this.set(path); 405 if ('get' == method && 1 == arguments.length) return this.set(path);406 var args = [method].concat([].slice.call(arguments));407 if (!this._usedRouter) this.use(this.router);408 this._router.route.apply(this._router, args);409 return this;
121 unmodified lines
modified:lib/response.js-1 removed
9 unmodified lines
10 , normalizeType = require('./utils').normalizeType11 , normalizeTypes = require('./utils').normalizeTypes12 , etag = require('./utils').etag13 , statusCodes = http.STATUS_CODES14 , send = connect.static.send14 , cookie = require('cookie')15 , send = require('send')16 , mime = connect.mime17 , basename = path.basename
699 unmodified lines
modified:.gitignore+1 added
14 unmodified lines
15testing16.coverage_data17cover_html18test.js19.idea
modified:Readme.md-4 removed