Skip to content

Commit aa01893

Browse files
committed
Add correct header for Stream request
1 parent 4d418b5 commit aa01893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/core/node/getHeaders.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function getHeaders(options: ApiRequestOptions): Promise<Headers> {
1919
}
2020

2121
if (options.body) {
22-
if (isBinary(options.body)) {
22+
if (isBinary(options.body) || options.body instanceof Stream) {
2323
headers.append('Content-Type', 'application/octet-stream');
2424
} else if (isString(options.body)) {
2525
headers.append('Content-Type', 'text/plain');

0 commit comments

Comments
 (0)