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

@ -43,6 +43,6 @@ export default apiRoute((app) =>
getLogger(["federation", "messaging"])
.info`Received message via ${chalk.bold("Instance Messaging")}:\n${content}`;
return context.body(null, 200);
return context.text("", 200);
}),
);