formacao
This commit is contained in:
+1
-2
@@ -1,4 +1,3 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
@@ -50,7 +49,7 @@ const methodOverride = (options) => async function methodOverride2(c, next) {
|
||||
return app.fetch(request, c.env, getExecutionCtx(c));
|
||||
}
|
||||
}
|
||||
if (contentType === "application/x-www-form-urlencoded") {
|
||||
if (contentType?.startsWith("application/x-www-form-urlencoded")) {
|
||||
const params = await (0, import_body.parseBody)(clonedRequest);
|
||||
const method = params[methodFormName];
|
||||
if (method) {
|
||||
|
||||
Reference in New Issue
Block a user