mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
fix: ingore undefined got options (#4651)
This commit is contained in:
@@ -27,7 +27,7 @@ const custom = got.extend({
|
||||
init: [
|
||||
(options) => {
|
||||
// compatible with axios api
|
||||
if (options.data) {
|
||||
if (options && options.data) {
|
||||
options.body = options.body || options.data;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user