fix(route): fix instagram X-IG-WWW-Claim header (#13950)

This commit is contained in:
Tony 2023-12-04 16:22:12 +00:00 committed by GitHub
parent f7aecbcb9d
commit 242083e7a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ const getUserInfo = async (username, cookieJar, cache) => {
cookieJar,
headers: {
...(await getHeaders(cookieJar)),
'X-IG-WWW-Claim': await cache.get('instagram:wwwClaimV2'),
'X-IG-WWW-Claim': (await cache.get('instagram:wwwClaimV2')) ?? undefined,
},
searchParams: {
username,