Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-08-09 08:49:31 +03:00
1 parent 98e708fa01
commit e102ed0a6f
2 files changed
+1 -5

No files matched your search

+1 -2
View File
@@ -57,8 +57,7 @@ export interface JsonApiConfig {
export class JsonApi<D = JsonApiData, P extends JsonApiParams = JsonApiParams> { export class JsonApi<D = JsonApiData, P extends JsonApiParams = JsonApiParams> {
static reqInitDefault: RequestInit = { static reqInitDefault: RequestInit = {
headers: { headers: {
"content-type": "application/json", "content-type": "application/json"
"connection": "keep-alive"
} }
}; };
-3
View File
@@ -475,9 +475,6 @@ export class KubeApi<T extends KubeObject> {
.catch(error => { .catch(error => {
if (error?.type === "aborted") return; // AbortController rejects, we can ignore it if (error?.type === "aborted") return; // AbortController rejects, we can ignore it
console.trace();
console.error(error);
callback(null, error); callback(null, error);
}); });