mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
Merge pull request #250 from staticinstance/staticinstance-patch-248
patch for issue 248 (send null instead of undefined)
This commit is contained in:
@@ -125,6 +125,11 @@ module.exports = function xhrAdapter(resolve, reject, config) {
|
||||
requestData = new DataView(requestData);
|
||||
}
|
||||
|
||||
// Clean up request
|
||||
requestData = (requestData === undefined)
|
||||
? null
|
||||
: requestData;
|
||||
|
||||
// Send the request
|
||||
request.send(requestData);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user