Skip to content

Commit c1877bf

Browse files
nflaigwemeetagain
authored andcommitted
fix: update user-agent check for go-eth2-client (#6958)
* fix: update user-agent check for go-eth2-client * Remove confusing comment
1 parent 4696307 commit c1877bf

File tree

1 file changed

+1
-1
lines changed
  • packages/beacon-node/src/api/rest

1 file changed

+1
-1
lines changed

packages/beacon-node/src/api/rest/base.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class RestApiServer {
101101
// go-eth2-client supports handling SSZ data in response for these endpoints
102102
!["produceBlindedBlock", "produceBlockV3", "getBlockV2", "getStateV2"].includes(operationId) &&
103103
// Only Vouch seems to override default header
104-
["Go-http-client", "Vouch"].includes(req.headers["user-agent"]?.split("/")[0] ?? "")
104+
["go-eth2-client", "Go-http-client", "Vouch"].includes(req.headers["user-agent"]?.split("/")[0] ?? "")
105105
) {
106106
// Override Accept header to force server to return JSON
107107
req.headers.accept = "application/json";

0 commit comments

Comments
 (0)