mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-01-31 00:00:03 +08:00
+ set data to null if response data is not set
This commit is contained in:
@@ -293,6 +293,8 @@ module.exports = function init(global, jsUtil, cookieHandler, messages, base64,
|
||||
}
|
||||
|
||||
if (!response.data) {
|
||||
// return null as data if response data is not set
|
||||
response.data = null;
|
||||
return success(response);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user