From 1f37f2a1523e2a69685220906f80bad3f8cbd760 Mon Sep 17 00:00:00 2001 From: "Hennadiy (Gena) Verkh" Date: Tue, 21 Apr 2015 11:43:09 +0200 Subject: [PATCH] Removed method restriction in uri module --- network/basics/uri.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/network/basics/uri.py b/network/basics/uri.py index 24f0dbf9e1f..7be1cc92159 100644 --- a/network/basics/uri.py +++ b/network/basics/uri.py @@ -73,7 +73,6 @@ options: description: - The HTTP method of the request or response. required: false - choices: [ "GET", "POST", "PUT", "HEAD", "DELETE", "OPTIONS", "PATCH" ] default: "GET" return_content: description: @@ -341,7 +340,7 @@ def main(): password = dict(required=False, default=None), body = dict(required=False, default=None), body_format = dict(required=False, default='raw', choices=['raw', 'json']), - method = dict(required=False, default='GET', choices=['GET', 'POST', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'PATCH']), + method = dict(required=False, default='GET'), 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='safe', choices=['all', 'safe', 'none', 'yes', 'no']),