Skip to content

Commit

Permalink
add content-type header to dag.get
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed May 24, 2024
1 parent eb1652c commit 68caa34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/app-ofa-private/ofa-private.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import "suave-std/Context.sol";
library DagStore {
function get(bytes32 id) internal returns (bytes memory) {
bytes memory body = abi.encodePacked('{"jsonrpc":"2.0","method":"batches.Pull","params":["', id, '"],"id":1}');
string[] memory headers = new string[](1);
headers[0] = "Content-Type: application/json";
Suave.HttpRequest memory request = Suave.HttpRequest({
url: "http://localhost:8000",
method: "GET",
headers: new string[](0),
headers: headers,
body: body,
withFlashbotsSignature: false
});
Expand Down

0 comments on commit 68caa34

Please sign in to comment.