@autofleet/network 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -97,7 +97,7 @@ module.exports = class Network {
|
|
|
97
97
|
logger.info(`Finish Request: [${response.config.method.toUpperCase()} ${response.config.url}`);
|
|
98
98
|
return response;
|
|
99
99
|
}, (error) => {
|
|
100
|
-
if(error.request._currentRequest.reusedSocket && error.code === 'ECONNRESET') {
|
|
100
|
+
if(error.request && error.request._currentRequest.reusedSocket && error.code === 'ECONNRESET') {
|
|
101
101
|
// See https://www.npmjs.com/package/agentkeepalive
|
|
102
102
|
// Support req.reusedSocket
|
|
103
103
|
// https://code-examples.net/en/q/28a8069
|