mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 09:40:34 +08:00
Workaround GitLab hot-link protection
This commit is contained in:
parent
7a415e5aca
commit
c8f999cda7
@ -72,8 +72,14 @@ export const downloadPreviousBuild = task(require.main === module, __filename)(a
|
|||||||
const resp = await fetchWithRetry(tarGzUrl, {
|
const resp = await fetchWithRetry(tarGzUrl, {
|
||||||
headers: {
|
headers: {
|
||||||
'User-Agent': 'curl/8.9.1',
|
'User-Agent': 'curl/8.9.1',
|
||||||
Accept: 'application/octet-stream'
|
// https://github.com/unjs/giget/issues/97
|
||||||
|
// https://gitlab.com/gitlab-org/gitlab/-/commit/50c11f278d18fe1f3fb12eb595067216bb58ade2
|
||||||
|
'sec-fetch-mode': 'same-origin'
|
||||||
},
|
},
|
||||||
|
// https://github.com/unjs/giget/issues/97
|
||||||
|
// https://gitlab.com/gitlab-org/gitlab/-/commit/50c11f278d18fe1f3fb12eb595067216bb58ade2
|
||||||
|
|
||||||
|
mode: 'same-origin',
|
||||||
retry: {
|
retry: {
|
||||||
retryOnNon2xx: false
|
retryOnNon2xx: false
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user