luci-base: switch to POST action for service reload
[project/luci.git] / modules / luci-base / luasrc / view / cbi / apply_xhr.htm
index 1814c93..6f63ba8 100644 (file)
@@ -4,7 +4,7 @@
        <script type="text/javascript">//<![CDATA[
                var apply_xhr = new XHR();
 
-               apply_xhr.get('<%=luci.dispatcher.build_url("servicectl", "restart", table.concat(configs, ","))%>', null,
+               apply_xhr.post('<%=luci.dispatcher.build_url("servicectl", "restart", table.concat(configs, ","))%>', { token: '<%=token%>' },
                        function() {
                                var checkfinish = function() {
                                        apply_xhr.get('<%=luci.dispatcher.build_url("servicectl", "status")%>', null,