We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17cab9c commit 6841d8dCopy full SHA for 6841d8d
lib/adapters/http.js
@@ -314,7 +314,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
314
} catch (e) {
315
}
316
317
- } else if (utils.isBlob(data)) {
+ } else if (utils.isBlob(data) || utils.isFile(data)) {
318
data.size && headers.setContentType(data.type || 'application/octet-stream');
319
headers.setContentLength(data.size || 0);
320
data = stream.Readable.from(readBlob(data));
0 commit comments