mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
@@ -88,6 +88,11 @@ module.exports = function httpAdapter(resolve, reject, config) {
|
||||
reject(err);
|
||||
});
|
||||
|
||||
// Handle request timeout
|
||||
req.setTimeout(config.timeout, function () {
|
||||
req.abort();
|
||||
});
|
||||
|
||||
// Send the request
|
||||
req.end(data);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user