From 32ab6a1496618959927917d9f0fe953457b8b159 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 19 Sep 2023 09:04:16 +0200 Subject: [PATCH] Remove default request headers that new node.js is not sending anymore --- packages/tendermint-rpc/src/rpcclients/http.spec.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/tendermint-rpc/src/rpcclients/http.spec.ts b/packages/tendermint-rpc/src/rpcclients/http.spec.ts index d486b79ac6..9453a5b857 100644 --- a/packages/tendermint-rpc/src/rpcclients/http.spec.ts +++ b/packages/tendermint-rpc/src/rpcclients/http.spec.ts @@ -26,11 +26,7 @@ describe("http", () => { expect(response).toEqual({ request_headers: jasmine.objectContaining({ // Basic headers from http client - Accept: jasmine.any(String), - "Content-Length": jasmine.any(String), "Content-Type": "application/json", - Host: jasmine.any(String), - "User-Agent": jasmine.any(String), }), }); }); @@ -54,10 +50,7 @@ describe("http", () => { expect(response).toEqual({ request_headers: jasmine.objectContaining({ // Basic headers from http client - "Content-Length": jasmine.any(String), "Content-Type": "application/json", - Host: jasmine.any(String), - "User-Agent": jasmine.any(String), // Custom headers foo: "bar123", Authorization: "Basic Z3Vlc3Q6bm9QYXNzMTIz",