Skip to content
Myr

Defaulting request body to utf8 for now

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

authored by visionmedia · committed by visionmedia · parent 5a85db1 · Browse files · 1 file+1 added−0 removed
This commit

State

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

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:lib/express/core.js+1 added
204 unmodified lines
205 if (port) this.port = port206 require('http')207 .createServer(function(request, response){208 request.body = ''209 request.setBodyEncoding('utf8')210 request.addListener('body', function(chunk){ request.body += chunk })211 request.addListener('complete', function(){ self.route(request, response) })212 })213 .listen(this.port, this.host)
51 unmodified lines