Do body preparation for other request methods
This commit is contained in:
parent
6d8238f394
commit
8c32cd121d
@ -271,7 +271,7 @@ async function setAuth(context: RequestContext) {
|
||||
|
||||
async function setBody(context: RequestContext) {
|
||||
if (
|
||||
context.request.method === "POST" &&
|
||||
["PATCH", "POST", "PUT"].includes(context.request.method) &&
|
||||
!context.request.url.endsWith("/api/infractions/new")
|
||||
) {
|
||||
if (
|
||||
|
Loading…
x
Reference in New Issue
Block a user