summaryrefslogtreecommitdiff
path: root/src/mailman/rest/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rest/helpers.py')
-rw-r--r--src/mailman/rest/helpers.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py
index b17cdbca7..4bef720ef 100644
--- a/src/mailman/rest/helpers.py
+++ b/src/mailman/rest/helpers.py
@@ -35,6 +35,7 @@ import hashlib
from datetime import datetime
from lazr.config import as_boolean
from restish.http import Response
+from restish.resource import MethodDecorator
from mailman.config import config
@@ -193,3 +194,9 @@ def restish_matcher(function):
def no_content():
"""204 No Content."""
return Response('204 No Content', [], None)
+
+
+# restish doesn't support HTTP PATCH (it's not standard).
+class PATCH(MethodDecorator):
+ """ http PATCH method """
+ method = 'PATCH'