fix: 🐛 Fixar senaste blocken (#81)

This commit is contained in:
Johan Öbrink 2021-03-16 15:30:26 +01:00 committed by GitHub
parent 16020a3d3c
commit 1ccdc9f42e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -170,6 +170,7 @@ export class Api extends EventEmitter {
},
body: authBody,
})
delete session.headers['API-Key']
// Temporarily remove cookies
const cookies = await this.cookieManager.getCookies(url)

View File

@ -51,7 +51,7 @@ export default function wrap(fetch: Fetch, options: FetcherOptions = {}): Fetche
headers: {
...init.headers,
// eslint-disable-next-line max-len
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36',
},
})