@travetto/net
Advanced tools
Comparing version 0.6.7 to 0.6.8
@@ -26,4 +26,3 @@ { | ||
}, | ||
"version": "0.6.7", | ||
"gitHead": "db85544d26a8e9f9932ccc314b88f113fafbdee5" | ||
} | ||
"version": "0.6.8" | ||
} |
@@ -152,3 +152,7 @@ import * as http from 'http'; | ||
if ((msg.statusCode || 200) > 299) { | ||
reject(this.buildError({ message: message.toString(), status: msg.statusCode, payload: { headers: msg.headers } })); | ||
if (msg.statusCode! > 399) { | ||
reject(this.buildError({ message: message.toString(), status: msg.statusCode, payload: { headers: msg.headers } })); | ||
} else { | ||
reject({ status: msg.statusCode, message: 'Redirect', headers: msg.headers }); | ||
} | ||
} else { | ||
@@ -155,0 +159,0 @@ if (!responseHandler) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9597
170