mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
Fix OAuth tests failing
This commit is contained in:
parent
ec0544c5ba
commit
ace9f97275
|
|
@ -102,9 +102,7 @@ describe("POST /oauth/token/", () => {
|
||||||
// @ts-expect-error FormData works
|
// @ts-expect-error FormData works
|
||||||
const response = await fetch(`${config.http.base_url}/oauth/token/`, {
|
const response = await fetch(`${config.http.base_url}/oauth/token/`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
// Do not set the Content-Type header for some reason
|
||||||
"Content-Type": "multipart/form-data",
|
|
||||||
},
|
|
||||||
body: formData,
|
body: formData,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue