1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-08-05 14:07:29 +03:00
parent 98e708fa01
commit e102ed0a6f
2 changed files with 1 additions and 5 deletions

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"
} }
}; };

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);
}); });