Skip to content
Myr

merged

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 · parent a58e3de · Browse files · 3 files+1 added−35 removed
This commit

State

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

Diff stats

3 files+1 added−35 removed

  • other:+1 added−35 removed

3 files+1 added−35 removed

modified:lib/response.js-8 removed
77 unmodified lines
7879 switch (typeof body) {80 // response status81 case 'number':82<<<<<<< HEAD82 this.get('Content-Type') || this.type('txt');84=======85 this.get('Content-Type') || this.type('.txt');86>>>>>>> feature/send-etag83 this.statusCode = body;84 body = http.STATUS_CODES[body];85 break;86 // string defaulting to html
7 unmodified lines
94 case 'object':95 if (null == body) {96 body = '';97 } else if (Buffer.isBuffer(body)) {102<<<<<<< HEAD98 this.get('Content-Type') || this.type('bin');104=======105 this.get('Content-Type') || this.type('.bin');106>>>>>>> feature/send-etag99 } else {100 return this.json(body);101 }102 break;
548 unmodified lines
modified:support/app.js+1 added-16 removed
modified:support/bench-11 removed
18 unmodified lines
1920sleep .521bench / "Hello World"22bench /blog "Mounted Hello World"23<<<<<<< HEAD23bench /blog/admin "Mounted 2 Hello World"25=======26>>>>>>> feature/send-etag24bench /middleware "Middleware"25bench /match "Router"26bench /render "Render"27bench /json "JSON tiny"31<<<<<<< HEAD28bench /json/15 "JSON small"29bench /json/50 "JSON medium"30bench /json/150 "JSON large"35=======36bench /json/small "JSON small"37bench /json/large "JSON large"38bench_conditional /json/large "JSON large etag" -13554356803140# 1.25 mb/s41>>>>>>> feature/send-etag4232kill -9 $pid