Skip to content

Commit

Permalink
Merge pull request #850 from DIYgod/master
Browse files Browse the repository at this point in the history
[pull] master from diygod:master
  • Loading branch information
pull[bot] authored Aug 2, 2023
2 parents e7ac1cf + e86265b commit 5c2445c
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

1 comment on commit 5c2445c

@vercel
Copy link

@vercel vercel bot commented on 5c2445c Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.