From 7088f72742bda90ed43b574c8bc433f635cc27ea Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 29 Feb 2016 07:20:39 -0800 Subject: [PATCH] At least for now, set body to raw as it can be either a dict or jsonified-str Since our validation does conversion as well as validation, I'm not sure this is entirely correct. May need to take a look at our conversion code and re-examine to be sure we're doing it right. --- network/basics/uri.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/basics/uri.py b/network/basics/uri.py index f1531c08ed9..16c27573455 100644 --- a/network/basics/uri.py +++ b/network/basics/uri.py @@ -335,7 +335,7 @@ def main(): dest = dict(required=False, default=None, type='path'), url_username = dict(required=False, default=None, aliases=['user']), url_password = dict(required=False, default=None, aliases=['password']), - body = dict(required=False, default=None), + body = dict(required=False, default=None, type='raw'), body_format = dict(required=False, default='raw', choices=['raw', 'json']), method = dict(required=False, default='GET', choices=['GET', 'POST', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'PATCH', 'TRACE', 'CONNECT', 'REFRESH']), return_content = dict(required=False, default='no', type='bool'),