fix(api): 🐛 Force text content-type header on all empty responses

Fixes a problem where the content-type would default to application/json
This commit is contained in:
Jesse Wierzbinski 2024-12-07 13:24:24 +01:00
parent 06376cf58a
commit 5074ac788f
No known key found for this signature in database
11 changed files with 13 additions and 12 deletions

View file

@ -201,7 +201,7 @@ export default (plugin: PluginType): void => {
.delete(OpenIdAccounts)
.where(eq(OpenIdAccounts.id, account.id));
return context.body(null, 204);
return context.text("", 204);
},
);
});