mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Will this fix it?
This commit is contained in:
parent
c756686de5
commit
4cee92f22d
|
|
@ -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…
Reference in a new issue