diff --git a/src/SASjs.ts b/src/SASjs.ts index 046af05..75e1049 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -1151,7 +1151,7 @@ export default class SASjs { this.csrfTokenApi = csrfToken } - private async resendWaitingRequests() { + private resendWaitingRequests = async () => { for (const sasjsWaitingRequest of this.sasjsWaitingRequests) { this.request(sasjsWaitingRequest.SASjob, sasjsWaitingRequest.data).then( (res: any) => { diff --git a/src/auth/auth.ts b/src/auth/auth.ts index 86460bd..fcbf168 100644 --- a/src/auth/auth.ts +++ b/src/auth/auth.ts @@ -91,7 +91,10 @@ export class AuthManager { */ public async checkSession() { const loginResponse = await axios.get(this.loginUrl.replace('.do', ''), { - responseType: 'text' + responseType: 'text', + headers: { + Accept: '*/*' + } }) const responseText = await loginResponse.data const isLoggedIn = /