summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krotscheck <krotscheck@gmail.com>2016-03-17 03:23:13 -0700
committerMichael Krotscheck <krotscheck@gmail.com>2016-05-04 06:53:06 -0700
commit9673e634966df3792d4103e5fd7ac156cd9ba677 (patch)
treeb7662ea82854355afb8d405cf9f589022415ae16
parent396f430d64a6588f476c220578b7262a661676d6 (diff)
downloadoslo-middleware-9673e634966df3792d4103e5fd7ac156cd9ba677.tar.gz
Added PATCH method to default config
This patch adds the PATCH method (rfc5789) to the default permitted HTTP Methods in this middleware. Change-Id: Ia5ead0fe27a0e5e6a0eaec532bd267276b003794
-rw-r--r--oslo_middleware/cors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_middleware/cors.py b/oslo_middleware/cors.py
index dde6482..3d7b49b 100644
--- a/oslo_middleware/cors.py
+++ b/oslo_middleware/cors.py
@@ -45,7 +45,7 @@ CORS_OPTS = [
help='Maximum cache age of CORS preflight requests.'),
cfg.ListOpt('allow_methods',
default=['OPTIONS', 'GET', 'HEAD', 'POST', 'PUT', 'DELETE',
- 'TRACE'], # RFC 2616
+ 'TRACE', 'PATCH'], # RFC 2616, RFC 5789
help='Indicate which methods can be used during the actual '
'request.'),
cfg.ListOpt('allow_headers',