summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-03-18 20:54:56 +0000
committerTrygve Laugstøl <trygvis@inamo.no>2012-03-18 20:54:56 +0000
commitc4ea24c6ee86c2e6544aff08197d1ec2a162aef9 (patch)
treed21f9447fa3bbb44fe58f0754e1dcce10333dcf9
parent68c00efedb777d59e610f46a121c56e3cc3f9444 (diff)
downloadhttp-mq-c4ea24c6ee86c2e6544aff08197d1ec2a162aef9.tar.gz
http-mq-c4ea24c6ee86c2e6544aff08197d1ec2a162aef9.tar.bz2
http-mq-c4ea24c6ee86c2e6544aff08197d1ec2a162aef9.tar.xz
http-mq-c4ea24c6ee86c2e6544aff08197d1ec2a162aef9.zip
o Updating list of allowed methods.
-rw-r--r--queue.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/queue.php b/queue.php
index 2c7396f..aa14c8a 100644
--- a/queue.php
+++ b/queue.php
@@ -350,7 +350,7 @@ function queues($url_generator) {
}
break;
default:
- allow_methods("GET", "HEAD");
+ allow_methods("GET", "HEAD", "POST");
}
}
@@ -425,7 +425,7 @@ function queue($url_generator, $queue) {
$db->delete_queue_and_items($queue);
break;
default:
- allow_methods("GET", "HEAD", "DELETE");
+ allow_methods("GET", "HEAD", "PUT", "PATCH", "DELETE");
}
}
?>