1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-07 04:20:05 +00:00

Merge branch 'master' into issue-409

This commit is contained in:
Yury Shkoda
2021-07-01 07:58:23 +03:00
committed by GitHub
4 changed files with 52 additions and 60 deletions

View File

@@ -64,6 +64,9 @@ export class RequestClient implements HttpClient {
baseURL: baseUrl
})
}
this.httpClient.defaults.validateStatus = (status) =>
status >= 200 && status < 305
}
public getCsrfToken(type: 'general' | 'file' = 'general') {