Skip to content

Commit

Permalink
fix:type
Browse files Browse the repository at this point in the history
  • Loading branch information
nafees87n committed May 9, 2024
1 parent 85b36d3 commit 7929428
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ class RequestProcessor {
matchedRule.pairs.forEach((pair) => {
if (matchSourceUrl(pair.source, requestDetails.url)) {
if (pair.modifications?.Request?.length) {
pair.modifications.Request.forEach((header) => {
pair.modifications.Request.forEach((header: { header: string; type: string; value: string }) => {
if (header.value === "rq_request_initiator_origin()") {
headerKeyValueMap.Request[header.header] = requestDetails.initiatorDomain;
}
});
}

if (pair.modifications?.Response?.length) {
pair.modifications.Response.forEach((header) => {
pair.modifications.Response.forEach((header: { header: string; type: string; value: string }) => {
if (header.value === "rq_request_initiator_origin()") {
headerKeyValueMap.Response[header.header] = requestDetails.initiatorDomain;
}
Expand Down

0 comments on commit 7929428

Please sign in to comment.