mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Remove default request headers that new node.js is not sending anymore
This commit is contained in:
parent
0068766518
commit
32ab6a1496
@ -26,11 +26,7 @@ describe("http", () => {
|
|||||||
expect(response).toEqual({
|
expect(response).toEqual({
|
||||||
request_headers: jasmine.objectContaining({
|
request_headers: jasmine.objectContaining({
|
||||||
// Basic headers from http client
|
// Basic headers from http client
|
||||||
Accept: jasmine.any(String),
|
|
||||||
"Content-Length": jasmine.any(String),
|
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
Host: jasmine.any(String),
|
|
||||||
"User-Agent": jasmine.any(String),
|
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -54,10 +50,7 @@ describe("http", () => {
|
|||||||
expect(response).toEqual({
|
expect(response).toEqual({
|
||||||
request_headers: jasmine.objectContaining({
|
request_headers: jasmine.objectContaining({
|
||||||
// Basic headers from http client
|
// Basic headers from http client
|
||||||
"Content-Length": jasmine.any(String),
|
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
Host: jasmine.any(String),
|
|
||||||
"User-Agent": jasmine.any(String),
|
|
||||||
// Custom headers
|
// Custom headers
|
||||||
foo: "bar123",
|
foo: "bar123",
|
||||||
Authorization: "Basic Z3Vlc3Q6bm9QYXNzMTIz",
|
Authorization: "Basic Z3Vlc3Q6bm9QYXNzMTIz",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user