fix(update): read setUpdateChannel body as form field, not JSON

The panel's axios layer posts application/x-www-form-urlencoded, so the dev-channel toggle sent dev=true and ShouldBindJSON failed with 'invalid character d'. Parse c.PostForm("dev") to match the codebase's form-encoded POST convention.
This commit is contained in:
MHSanaei
2026-06-24 18:24:54 +02:00
parent aad2b3eb1e
commit 1d1128cf94
3 changed files with 7 additions and 9 deletions
-3
View File
@@ -4253,9 +4253,6 @@
"application/json": {
"schema": {
"type": "object"
},
"example": {
"dev": true
}
}
}