diff --git a/network/basics/uri.py b/network/basics/uri.py index 95bf5c705fe..aac724a8f13 100644 --- a/network/basics/uri.py +++ b/network/basics/uri.py @@ -426,7 +426,8 @@ def main(): uresp[ukey] = value if 'content_type' in uresp: - if uresp['content_type'].startswith('application/json'): + if uresp['content_type'].startswith('application/json') or \ + uresp['content_type'].startswith('text/json'): try: js = json.loads(content) uresp['json'] = js