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.
1 parent 4d418b5 commit aa01893Copy full SHA for aa01893
src/templates/core/node/getHeaders.hbs
@@ -19,7 +19,7 @@ async function getHeaders(options: ApiRequestOptions): Promise<Headers> {
19
}
20
21
if (options.body) {
22
- if (isBinary(options.body)) {
+ if (isBinary(options.body) || options.body instanceof Stream) {
23
headers.append('Content-Type', 'application/octet-stream');
24
} else if (isString(options.body)) {
25
headers.append('Content-Type', 'text/plain');
0 commit comments