luci-base: allow query params with POST.
authorJan Pazdziora <jan.pazdziora@code.adelton.com>
Fri, 10 Jan 2025 13:53:47 +0000 (14:53 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Wed, 22 Jan 2025 14:53:02 +0000 (15:53 +0100)
Signed-off-by: Jan Pazdziora <jan.pazdziora@code.adelton.com>
modules/luci-base/htdocs/luci-static/resources/luci.js

index f2e78b1fa4cad88e182bb71da0fb1a328a3b00f0..a1207f567c45dc8dcec478c6bdd407e824f0d17d 100644 (file)
                                                        switch (opt.method) {
                                                        case 'GET':
                                                        case 'HEAD':
+                                                       case 'POST':
                                                        case 'OPTIONS':
                                                                opt.url += ((/\?/).test(opt.url) ? '&' : '?') + q;
                                                                break;