Skip to content
Myr

Initializing request.body as empty string

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

authored by visionmedia · committed by visionmedia · parent 654c526 · Browse files · 2 files+2 added−1 removed
This commit

State

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

Diff stats

2 files+2 added−1 removed

  • other:+2 added−1 removed

2 files+2 added−1 removed

modified:examples/app.js+1 added-1 removed
modified:lib/express/core.js+1 added
218 unmodified lines
219 if (host) this.host = host220 if (port) this.port = port221 require('http')222 .createServer(function(request, response){223 request.body = ''224 request.addListener('body', function(chunk){ request.body += chunk })225 request.addListener('complete', function(){ self.route(request, response) })226 })227 .listen(this.port, this.host)
61 unmodified lines