lib/commandCenter/httpBatchHandler.js
function parseHttpBody(req, cb) {
	// check for multipart streams that can contain file uploads

	var contentType = req.headers['content-type'];
	var m = contentType && contentType.match(/^multipart\/form-data; boundary=(.+)$/);

	if (m && m[1]) {
		parseMultipart(req, m[1], cb);
	} else {
		parseSinglepart(req, cb);
	}
}
function parseHttpBody(req, cb) {
	// check for multipart streams that can contain file uploads

	var contentType = req.headers['content-type'];
	var m = contentType && contentType.match(/^multipart\/form-data; boundary=(.+)$/);

	if (m && m[1]) {
		parseMultipart(req, m[1], cb);
	} else {
		parseSinglepart(req, cb);
	}
}
function parseHttpBody ( req , cb ) { // check for multipart streams that can contain file uploads var contentType = req . headers [ 'content-type' ] ; var m = contentType && contentType . match ( / ^multipart\/form-data; boundary=(.+)$ / ) ; if ( m && m [ 1 ] ) { parseMultipart ( req , m [ 1 ] , cb ) ; } else { parseSinglepart ( req , cb ) ; } }
Streams and parses an HTTP request by calling into parseSinglepart or parseMultipart.

@param {Object}   req       The HTTP request.
@param {Function} cb        Callback on completion.
Streams and parses an HTTP request by calling into parseSinglepart or parseMultipart .