Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
RecognizeStream.getContentType = function (buffer) {
// the substr really shouldn't be necessary, but there's a bug somewhere that can cause buffer.slice(0,4) to return
// the entire contents of the buffer, so it's a failsafe to catch that
return ibm_cloud_sdk_core_1.contentType.fromHeader(buffer);
};
RecognizeStream.prototype.initialize = function () {