From ecc59591f182f14501be51cd6d1ffd429b17a3a6 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Mon, 16 Feb 2015 19:36:02 +0100 Subject: [PATCH] Disable urllib3's "Unverified HTTPS request is being made" warnings --- httpie/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/httpie/client.py b/httpie/client.py index 83b22f90..d54e9335 100644 --- a/httpie/client.py +++ b/httpie/client.py @@ -3,6 +3,7 @@ import sys from pprint import pformat import requests +from requests.packages import urllib3 from httpie import sessions from httpie import __version__ @@ -10,6 +11,10 @@ from httpie.compat import str from httpie.plugins import plugin_manager +# https://urllib3.readthedocs.org/en/latest/security.html +urllib3.disable_warnings() + + FORM = 'application/x-www-form-urlencoded; charset=utf-8' JSON = 'application/json' DEFAULT_UA = 'HTTPie/%s' % __version__