This commit is contained in:
cmachsocket
2026-09-19 21:31:39 +08:00
parent 9a16c89714
commit 77a9269828
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -441,7 +441,7 @@ const createRequest = async (uri, data, options) => {
) {
NMTID_RETRIES_LEFT--
answer.cookie = (
typeof res.headers['set-cookie'] === 'string' // node 20 版本以前,可能解析为String
typeof res.headers['set-cookie'] === 'string'
? [res.headers['set-cookie']]
: res.headers['set-cookie'] || []
).map((x) => {