Skip to content

Commit

Permalink
more default headers (LNReader#942)
Browse files Browse the repository at this point in the history
more default headers
  • Loading branch information
nyagami authored Feb 7, 2024
1 parent e5a1753 commit 1b5e345
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/helpers/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ type FetchInit = {

const makeInit = (init?: FetchInit) => {
const defaultHeaders = {
'Connection': 'keep-alive',
'Accept': '*/*',
'Accept-Language': '*',
'Sec-Fetch-Mode': 'cors',
'Accept-Encoding': 'gzip, deflate',
'Cache-Control': 'max-age=0',
'User-Agent': getUserAgent(),
};
if (init?.headers) {
Expand Down

0 comments on commit 1b5e345

Please sign in to comment.