Skip to content
Myr

Uploads dont become part of params unless they have length

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

authored by visionmedia · committed by visionmedia · parent bf9505a · Browse files · 1 file+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

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:lib/express/core.js+2 added-1 removed
237 unmodified lines
238 part.buf = '',239 part240 .addListener('body', function(chunk){ part.buf += chunk })241 .addListener('complete', function(){242 if (part.buf.length)242 mergeParam(part.name, part.buf, request.params.post)243 mergeParam(part.name, part.buf, request.params.post)244 })245 }).addListener('complete', function(){ self.route(request, response) })246 }247 else
69 unmodified lines