aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-09-01 18:03:34 +0800
committerGitHub <noreply@github.com>2017-09-01 18:03:34 +0800
commitedeed527c2d417c961296a86ef3509e37e6ef1f3 (patch)
tree832dd9f6288bff3182ffcb52418a176b8ce82afc
parent134b9dfb23352f33bf8b8a944658b35a7f1cf134 (diff)
parent4c40b60a2dd0a0758bdb80e2d7924eb984c8b80a (diff)
downloaddexon-sol-tools-edeed527c2d417c961296a86ef3509e37e6ef1f3.tar
dexon-sol-tools-edeed527c2d417c961296a86ef3509e37e6ef1f3.tar.gz
dexon-sol-tools-edeed527c2d417c961296a86ef3509e37e6ef1f3.tar.bz2
dexon-sol-tools-edeed527c2d417c961296a86ef3509e37e6ef1f3.tar.lz
dexon-sol-tools-edeed527c2d417c961296a86ef3509e37e6ef1f3.tar.xz
dexon-sol-tools-edeed527c2d417c961296a86ef3509e37e6ef1f3.tar.zst
dexon-sol-tools-edeed527c2d417c961296a86ef3509e37e6ef1f3.zip
Merge pull request #148 from BMillman19/bmillman_json_content_type
Add 'content-type' header with value 'application/json' for http requ…
-rw-r--r--test/utils/rpc.ts3
1 files changed, 3 insertions, 0 deletions
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);