Skip to content

Commit

Permalink
fix: bilibili route /bilibili/user/video/:uid bug (DIYgod#12920)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigcoder84 authored Aug 1, 2023
1 parent 31a59fd commit e86265b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/v2/bilibili/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ module.exports = {
Referer: url,
},
});
return response.headers['set-cookie'].map((cookie) => cookie.split(';')[0]).join('; ');
const setCookies = response.headers['set-cookie'];
if (typeof setCookies === 'undefined') {
return '';
}
return setCookies.map((cookie) => cookie.split(';')[0]).join('; ');
});
},
getVerifyString: (ctx) => {
Expand Down

0 comments on commit e86265b

Please sign in to comment.