Skip to content

Commit

Permalink
feat(libs): support wildcards in request header values
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiaz committed Oct 31, 2023
1 parent bb9c9a5 commit 4afbf3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/libs/WitnetEncodingLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ library WitnetEncodingLib {
self.url = WitnetBuffer.replace(self.url, args);
self.body = WitnetBuffer.replace(self.body, args);
self.script = replaceCborStringsFromBytes(self.script, args);
for (uint _ix = 0 ; _ix < self.headers.length; _ix ++) {
self.headers[_ix][1] = WitnetBuffer.replace(self.headers[_ix][1], args);
}
}

function validate(
Expand Down

0 comments on commit 4afbf3a

Please sign in to comment.