mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
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:
parent
06376cf58a
commit
5074ac788f
11 changed files with 13 additions and 12 deletions
|
|
@ -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);
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue