opt: post redirect (#788)

* opt: cookie

* opt: post redirect
This commit is contained in:
My-Responsitories
2025-05-01 10:08:48 +08:00
committed by GitHub
parent a46bde68f5
commit c090cae1a1
5 changed files with 68 additions and 67 deletions

View File

@@ -35,10 +35,8 @@ class LiveHttp {
'origin': 'https://live.bilibili.com',
'referer': 'https://live.bilibili.com/',
'user-agent': Request.headerUa(type: 'pc'),
if (gaiaVtoken == null) 'cookie': 'x-bili-gaia-vtoken=$gaiaVtoken'
},
extra: gaiaVtoken == null
? null
: {'cookie': 'x-bili-gaia-vtoken=$gaiaVtoken'},
),
);
if (res.data['code'] == 0) {