From ace9f972752ce26cdba17eb4a82e97e147ac9189 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sun, 22 Oct 2023 14:38:33 -1000 Subject: [PATCH] Fix OAuth tests failing --- tests/oauth.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/oauth.test.ts b/tests/oauth.test.ts index 6d310310..d7d66c07 100644 --- a/tests/oauth.test.ts +++ b/tests/oauth.test.ts @@ -102,9 +102,7 @@ describe("POST /oauth/token/", () => { // @ts-expect-error FormData works const response = await fetch(`${config.http.base_url}/oauth/token/`, { method: "POST", - headers: { - "Content-Type": "multipart/form-data", - }, + // Do not set the Content-Type header for some reason body: formData, });