summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2020-09-23 13:57:30 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-23 16:54:18 +0200
commitb17ec0926d9519da7d5cd22a60c05c93bcc8292c (patch)
treef17526e5a6107a951b5a8887c347f97930eae206 /modules/luci-base/htdocs
parent6044084a61cdd95e390002cc6a908b33185d457d (diff)
luci-base: don't append object.method to the RPC url
It was a cosmetic feature that doesn't work anymore with the latest uhttpd ubus API. Adding RESTful API resulted in treating URL part following the /ubus/ as the new API request. Suggested-by: Rafał Miłecki <rafal@milecki.pl> Fixes: #4465 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/rpc.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/rpc.js b/modules/luci-base/htdocs/luci-static/resources/rpc.js
index 7bfc91336..f37f7bb6a 100644
--- a/modules/luci-base/htdocs/luci-static/resources/rpc.js
+++ b/modules/luci-base/htdocs/luci-static/resources/rpc.js
@@ -33,9 +33,6 @@ return baseclass.extend(/** @lends LuCI.rpc.prototype */ {
req[i].params[2]
);
}
- else if (req.params) {
- q += '/%s.%s'.format(req.params[1], req.params[2]);
- }
return request.post(rpcBaseURL + q, req, {
timeout: (L.env.rpctimeout || 20) * 1000,