in src/ResponseStream.js [216:221]
req.setContentType = function (contentType) {
if (status !== STATUS_READY) {
throw new InvalidStreamingOperation('Cannot set content-type, too late.');
}
req.setHeader('Content-Type', contentType);
};