Skip to content

Commit 30a3630

Browse files
committed
fix(tieba): 修复获取不到 cookie 问题, 感谢 "Zero Ma"
1 parent 3ddf529 commit 30a3630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tieba/tieba.cookie.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const cookieName = '百度贴吧'
22
const cookieKey = 'chavy_cookie_tieba'
33
const chavy = init()
4-
const cookieVal = $request.headers['Cookie']
4+
const cookieVal = $request.headers['Cookie'] || $request.headers['cookie']
55

66
if (cookieVal.indexOf('BDUSS') > 0) {
77
let cookie = chavy.setdata(cookieVal, cookieKey)

0 commit comments

Comments
 (0)