diff --git a/src/utils/rest.ts b/src/utils/rest.ts
index 176d8b8..afd42e3 100644
--- a/src/utils/rest.ts
+++ b/src/utils/rest.ts
@@ -38,10 +38,7 @@ export function post
, TR
) {
return emitRequest(url, {
method: 'POST',
- headers: {
- 'X-Magic-Secret-Key': secretApiKey,
- 'Content-Type': 'application/json'
- },
+ headers: { 'X-Magic-Secret-Key': secretApiKey },
body: JSON.stringify(body),
});
}
diff --git a/test/spec/utils/rest/post.spec.ts b/test/spec/utils/rest/post.spec.ts
index a358673..c500407 100644
--- a/test/spec/utils/rest/post.spec.ts
+++ b/test/spec/utils/rest/post.spec.ts
@@ -26,10 +26,7 @@ test('Successfully POSTs to the given endpoint & stringifies body', async () =>
'https://example.com/hello/world',
{
method: 'POST',
- headers: {
- 'X-Magic-Secret-Key': API_KEY,
- 'Content-Type': 'application/json'
- },
+ headers: { 'X-Magic-Secret-Key': API_KEY },
body: '{"public_address":"0x0123"}',
},
]);