Skip to content
Myr

Merge branch 'master' of git://github.com/csausdev/express into dev

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

authored by visionmedia · committed by visionmedia · parents bf03e85, 970ccd8 · Browse files · 5 files+10 added−7 removed
This commit

State

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

Diff stats

5 files+10 added−7 removed

  • tests:+4 added−2 removed
  • other:+6 added−5 removed

5 files+10 added−7 removed

modified:examples/async.js-1 removed
modified:lib/express/core.js+3 added-2 removed
60 unmodified lines
61 settings : {62 basepath : '/',63 defaultRoute : {64 callback : function() {65 Express.halt('Page or file cannot be found', 'Not Found')65 Express.status('Not Found')66 'Page or file cannot be found'67 }68 }69 },70
282 unmodified lines
353 */354 355 halt : function(body, status) {356 this.status(status || 200)356 Express.server.finished(this.response.body = body)357 Express.server.finished(body)358 },359 360 /**361 * Get or set response _name_ header.
318 unmodified lines
modified:spec/spec.core.js+1 added-1 removed
174 unmodified lines
175 describe '.back'176 it 'should redirect to the referrer'177 uri = 'http://vision-media.ca'178 get('foo', function(){ redirect(back) })179 request = mockRequest({ headers : { 'Referer': uri }})179 request = mockRequest({ headers : { 'referer': uri }})180 get('foo', { request: request }).headers.location.should.eql uri181 Express.back.should.eql uri182 end183 end
55 unmodified lines
modified:spec/spec.routing.js+3 added-1 removed
modified:Readme.md+3 added-2 removed
35 unmodified lines
3637## Examples3839See examples/simple.js for a working server that uses a synchronous handler. 40Just type "node examples/simple.js" and then go to http://localhost:3000/hello/world41For an asynchronous example, run "node examples/async.js" and then go to http://localhost:3000/hello/world/200040Just type "node examples/simple.js" and then go to http://localhost:3000/i/like/cheese4142For an asynchronous example, run "node examples/async.js" and then go to http://localhost:3000/wait/20004344GET /user/tj/edit45 46 get('user/:name/:operation', function(){47 param('operation') + 'ing ' + param('name')
94 unmodified lines