mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Will this fix it?
This commit is contained in:
parent
c756686de5
commit
4cee92f22d
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ export const processRoute = async (
|
|||
}
|
||||
|
||||
// Check if Content-Type header is missing if there is a body
|
||||
if (request.body) {
|
||||
if (request.clone().body) {
|
||||
if (!request.headers.has("Content-Type")) {
|
||||
return errorResponse(
|
||||
`Content-Type header is missing but required on method ${request.method}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue