Gildas 3 недель назад
Родитель
Сommit
b3a4a75cf6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/lib/rest-form-api/index.js

+ 1 - 1
src/lib/rest-form-api/index.js

@@ -59,7 +59,7 @@ class RestFormApi {
 			headers: this.headers,
 			headers: this.headers,
 			signal: this.controller.signal
 			signal: this.controller.signal
 		});
 		});
-		if ([200, 201].includes(response.status)) {
+		if ([200, 201, 202].includes(response.status)) {
 			return response.json();
 			return response.json();
 		} else {
 		} else {
 			throw new Error(await response.text());
 			throw new Error(await response.text());