Skip to content

Commit 8ec7577

Browse files
committed
🔧 Fix FileObject data in upload events via http transport
1 parent a404270 commit 8ec7577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ export class UploadInstance extends EventEmitter {
574574
delete this.fetchTimeouts[uid];
575575
result = response;
576576

577-
if (response.headers.get('content-type') === 'application/json') {
577+
if ((response.headers.get('content-type') || '').includes('application/json')) {
578578
try {
579579
const jsonData = await response.json();
580580
if (jsonData.meta) {

0 commit comments

Comments
 (0)