Skip to content

Commit

Permalink
More robust header comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
jreyesr committed May 22, 2024
1 parent e7e9a97 commit d924969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export async function makeRequest(context, request, i, row, delay, outputConfig,
out = applyJsonPath(jsonPath, responseData) ?? null
break
case "headers":
out = response.headers.find(h => h.name === jsonPath.toLowerCase()).value
out = response.headers.find(h => h.name.toLowerCase() === jsonPath.toLowerCase()).value
break
case "statusCode":
out = response.statusCode.toString()
Expand Down

0 comments on commit d924969

Please sign in to comment.