Skip to content

Commit

Permalink
fix: 🐛 Fixar senaste blocken (kolplattformen#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanObrink authored Mar 16, 2021
1 parent 16020a3 commit 1ccdc9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
})

Expand Down

0 comments on commit 1ccdc9f

Please sign in to comment.