From 30c8f514a23d103d17899d599ee11c130a11d097 Mon Sep 17 00:00:00 2001 From: Pedro Romano Date: Sun, 2 Feb 2014 20:53:52 +0000 Subject: [PATCH] Allow the 'PATCH' method in the 'uri' module since 'httplib2' allows it and some APIs require it. --- library/network/uri | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/network/uri b/library/network/uri index 9a22d4758c..6f10d5c80e 100644 --- a/library/network/uri +++ b/library/network/uri @@ -68,7 +68,7 @@ options: description: - The HTTP method of the request or response. required: false - choices: [ "GET", "POST", "PUT", "HEAD", "DELETE", "OPTIONS" ] + choices: [ "GET", "POST", "PUT", "HEAD", "DELETE", "OPTIONS", "PATCH" ] default: "GET" return_content: description: @@ -309,7 +309,7 @@ def main(): user = dict(required=False, default=None), password = dict(required=False, default=None), body = dict(required=False, default=None), - method = dict(required=False, default='GET', choices=['GET', 'POST', 'PUT', 'HEAD', 'DELETE', 'OPTIONS']), + method = dict(required=False, default='GET', choices=['GET', 'POST', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'PATCH']), return_content = dict(required=False, default='no', type='bool'), force_basic_auth = dict(required=False, default='no', type='bool'), follow_redirects = dict(required=False, default='no', type='bool'),