Skip to content

Commit 0f180ee

Browse files
authored
fix(v2ex): 修复获取不到 Cookie 的问题 (chavyleung#448)
1 parent 02d54ff commit 0f180ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

v2ex/quanx/v2ex.cookie.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const cookieName = 'V2EX'
22
const cookieKey = 'chavy_cookie_v2ex'
3-
const cookieVal = $request.headers['Cookie']
3+
const cookieVal = $request.headers['Cookie'] || $request.headers['cookie']
44

55
if (cookieVal) {
66
let cookie = $prefs.setValueForKey(cookieVal, cookieKey)

v2ex/v2ex.cookie.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const cookieName = 'V2EX'
22
const cookieKey = 'chavy_cookie_v2ex'
3-
const cookieVal = $request.headers['Cookie']
3+
const cookieVal = $request.headers['Cookie'] || $request.headers['cookie']
44

55
if (cookieVal) {
66
let cookie = $persistentStore.write(cookieVal, cookieKey)

0 commit comments

Comments
 (0)