diff --git a/src/platform/web/lib/http/request/fetchrequest.ts b/src/platform/web/lib/http/request/fetchrequest.ts index d262ef1af..27dd29bd6 100644 --- a/src/platform/web/lib/http/request/fetchrequest.ts +++ b/src/platform/web/lib/http/request/fetchrequest.ts @@ -69,6 +69,10 @@ export default async function fetchRequest( clearTimeout(timeout!); + if (res.status == 204) { + return { error: null, statusCode: res.status }; + } + const contentType = res.headers.get('Content-Type'); let body; if (contentType && contentType.indexOf('application/x-msgpack') > -1) {