diff --git a/ethereum/executionclient/src/integration-test/java/tech/pegasys/teku/ethereum/executionclient/rest/RestBuilderClientTest.java b/ethereum/executionclient/src/integration-test/java/tech/pegasys/teku/ethereum/executionclient/rest/RestBuilderClientTest.java index 1e2f467a8a9..f2adbca4c58 100644 --- a/ethereum/executionclient/src/integration-test/java/tech/pegasys/teku/ethereum/executionclient/rest/RestBuilderClientTest.java +++ b/ethereum/executionclient/src/integration-test/java/tech/pegasys/teku/ethereum/executionclient/rest/RestBuilderClientTest.java @@ -673,9 +673,12 @@ private void runGetPayloadSuccessAsJson() { verifyBuilderPayloadResponse(builderPayload); }); final Consumer containsConsensusVersionHeader = - req -> - assertThat(req.getHeader("Eth-Consensus-Version")) - .isEqualTo(milestone.name().toLowerCase(Locale.ROOT)); + req -> { + assertThat(req.getHeader("Eth-Consensus-Version")) + .isEqualTo(milestone.name().toLowerCase(Locale.ROOT)); + assertThat(req.getHeader("Accept")) + .isEqualTo("application/octet-stream;q=1.0,application/json;q=0.9"); + }; verifyRequest( "POST", "/eth/v1/builder/blinded_blocks", diff --git a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/RestBuilderClient.java b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/RestBuilderClient.java index 2768534e6db..1ce10a5c806 100644 --- a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/RestBuilderClient.java +++ b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/RestBuilderClient.java @@ -212,7 +212,9 @@ public SafeFuture> getPayload( return restClient .postAsync( BuilderApiMethod.GET_PAYLOAD.getPath(), - Map.of(HEADER_CONSENSUS_VERSION, milestone.name().toLowerCase(Locale.ROOT)), + Map.ofEntries( + Map.entry(HEADER_CONSENSUS_VERSION, milestone.name().toLowerCase(Locale.ROOT)), + ACCEPT_HEADER), signedBlindedBeaconBlock, LAST_RECEIVED_HEADER_WAS_IN_SSZ.get(), responseTypeDefinition)