fix: disable compression for subscription requests to prevent ZIP response

This commit is contained in:
Memory 2026-03-09 22:17:25 +08:00 committed by GitHub
parent 4fd7dec4db
commit 1a52bff8af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>