Skip to content

Commit

Permalink
fix: allheaders
Browse files Browse the repository at this point in the history
  • Loading branch information
nohehf committed Aug 26, 2024
1 parent 6ab9d7e commit 0422354
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ export async function createPostmanCollection(
authHeader?: [string, string],
) {
// Pass all headers to fetchIntrospection, including the global authHeader
const allHeaders = headers;
if (authHeader) {
allHeaders.push(authHeader);
}
const allHeaders = authHeader ? [...headers, authHeader] : headers;
const introspection = await fetchIntrospection(url, allHeaders);
const outrospection = outrospect(introspection);

Expand Down

0 comments on commit 0422354

Please sign in to comment.