We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 465a754 + f7d1de6 commit e836f30Copy full SHA for e836f30
lib/recognize-stream.ts
@@ -388,7 +388,7 @@ class RecognizeStream extends Duplex {
388
return;
389
}
390
if (!this.initialized) {
391
- if (!this.options['content-type']) {
+ if (!this.options['content-type'] && !this.options.content_type) {
392
const ct = RecognizeStream.getContentType(chunk);
393
if (ct) {
394
this.options['content-type'] = ct;
0 commit comments