fix(route/zhihu): Trim characters while extracting cookies (#16320)

* Update utils.ts

* Update utils.ts
This commit is contained in:
Andvari 2024-08-01 18:58:28 +08:00 committed by GitHub
parent adb0f64315
commit 265a1aad73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ export const getSignedHeader = async (url: string, apiPath: string) => {
const zc0 = config.zhihu.cookies
?.split(';')
.map((e) => e.trim())
.find((e) => e.includes('z_c0'))
?.slice('z_c0='.length);
return {