]> git.proxmox.com Git - pve-firewall.git/commitdiff
use GET instead of POST for command that do not change state.
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 21 May 2014 06:27:55 +0000 (08:27 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 21 May 2014 06:27:55 +0000 (08:27 +0200)
src/pve-firewall

index 91fc531cf9181d7137a6eff5dc6ff285e11e4005..034f93354d9398ac73654ebe83137f03a04d592d 100755 (executable)
@@ -349,7 +349,7 @@ __PACKAGE__->register_method ({
 __PACKAGE__->register_method ({
     name => 'compile',
     path => 'compile',
 __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,
     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',
 __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,
     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,