Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl authored Jan 15, 2025
1 parent 8af2654 commit 5470a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ async function metadataAccessor<T>(
log.info('instance request %j', req);

const res = await requestMethod<T>(req);
log.info('instance metadata is %s', res.data);
// NOTE: node.js converts all incoming headers to lower case.
if (res.headers[HEADER_NAME.toLowerCase()] !== HEADER_VALUE) {
throw new Error(
Expand All @@ -180,7 +181,6 @@ async function metadataAccessor<T>(
}
}

log.info('instance metadata is %s', res.data);
return res.data;
}

Expand Down

0 comments on commit 5470a03

Please sign in to comment.