mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-04-12 23:50:31 +08:00
fix: disable compression for subscription requests to prevent ZIP response
This commit is contained in:
parent
4fd7dec4db
commit
1a52bff8af
@ -179,7 +179,10 @@ interface FetchResult {
|
||||
async function fetchAndValidateSubscription(options: FetchOptions): Promise<FetchResult> {
|
||||
const { url, useProxy, mixedPort, userAgent, authToken, timeout, substore } = options
|
||||
|
||||
const headers: Record<string, string> = { 'User-Agent': userAgent }
|
||||
const headers: Record<string, string> = {
|
||||
'User-Agent': userAgent,
|
||||
'Accept-Encoding': 'identity'
|
||||
}
|
||||
if (authToken) headers['Authorization'] = authToken
|
||||
|
||||
let res: chromeRequest.Response<string>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user