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