]> git.proxmox.com Git - pve-firewall.git/blobdiff - src/pve-firewall
use GET instead of POST for command that do not change state.
[pve-firewall.git] / src / pve-firewall
index 91fc531cf9181d7137a6eff5dc6ff285e11e4005..034f93354d9398ac73654ebe83137f03a04d592d 100755 (executable)
@@ -349,7 +349,7 @@ __PACKAGE__->register_method ({
 __PACKAGE__->register_method ({
     name => 'compile',
     path => 'compile',
-    method => 'POST',
+    method => 'GET',
     description => "Compile and print firewall rules. This is useful for testing.",
     parameters => {
        additionalProperties => 0,
@@ -416,7 +416,7 @@ __PACKAGE__->register_method ({
 __PACKAGE__->register_method ({
     name => 'simulate',
     path => 'simulate',
-    method => 'POST',
+    method => 'GET',
     description => "Simulate firewall rules. This does not simulate kernel 'routing' table. Instead, this simply assumes that routing from source zone to destination zone is possible.",
     parameters => {
        additionalProperties => 0,