Skip to content

Commit 724d529

Browse files
committed
feat: add support for response.status OR response.statusCode
1 parent 2b2d298 commit 724d529

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,8 @@ class Tangerine extends dns.promises.Resolver {
815815
// if aborted signal then returns early
816816
// eslint-disable-next-line max-depth
817817
if (response) {
818-
const { statusCode, body, headers } = response;
818+
const { body, headers } = response;
819+
const statusCode = response.status || response.statusCode;
819820
debug('response', { statusCode, headers });
820821

821822
// eslint-disable-next-line max-depth

0 commit comments

Comments
 (0)