Skip to content

Commit bda4b59

Browse files
Copilotshazron
andauthored
fix: lowercase __ow_method before HTTP method comparison
Agent-Logs-Url: https://github.com/adobe/aio-cli-plugin-app-dev/sessions/43165f12-7307-4f74-a8ff-c5760db64dfa Co-authored-by: shazron <36107+shazron@users.noreply.github.com>
1 parent 1d36cb0 commit bda4b59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/run-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ function createActionParametersFromRequest ({ req, contextItem, actionInputs = {
601601
const isFormData = req.is('application/x-www-form-urlencoded')
602602
const isRaw = isRawWebAction(contextItem)
603603

604-
if (['post', 'put', 'patch', 'delete'].includes(params.__ow_method) && req.body !== null) {
604+
if (['post', 'put', 'patch', 'delete'].includes(params.__ow_method?.toLowerCase()) && req.body !== null) {
605605
if (isRaw) {
606606
if (isFormData) {
607607
params.__ow_body = new URLSearchParams(req.body).toString() // convert json back to query string

0 commit comments

Comments
 (0)