From 4c40b60a2dd0a0758bdb80e2d7924eb984c8b80a Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Fri, 1 Sep 2017 00:56:17 -0700 Subject: Add 'content-type' header with value 'application/json' for http requests made JSONRPC endpoints --- test/utils/rpc.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/utils/rpc.ts b/test/utils/rpc.ts index e331fa6d4..436e96423 100644 --- a/test/utils/rpc.ts +++ b/test/utils/rpc.ts @@ -40,6 +40,9 @@ export class RPC { method: 'POST', uri: `http://${this.host}:${this.port}`, body: payload, + headers: { + 'content-type': 'application/json' + }, }; const bodyString = await request(opts); const body = JSON.parse(bodyString); -- cgit v1.2.3