Skip to content
Myr

process.Promise -> events.Promise

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

authored by visionmedia · committed by visionmedia · parent 1f76d5c · 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
12 unmodified lines
13 * Module dependencies.14 */1516var multipart = require('multipart'),17 events = require('events'),18 File = require('file').File,19 utils = require('express/utils')20 21// --- Route
201 unmodified lines
223 request.setBodyEncoding('binary')224 if (request.headers['content-type'] &&225 request.headers['content-type'].indexOf('multipart/form-data') !== -1) {226 var stream = new multipart.Stream(request),226 promise = new process.Promise,227 promise = new events.Promise,228 pendingFiles = 0229 request.params = { post: {}}230 promise.timeout(set('upload timeout') || 5000)231 stream.addListener('part', function(part){
102 unmodified lines