Disable urllib3's "Unverified HTTPS request is being made" warnings

This commit is contained in:
Jakub Roztocil 2015-02-16 19:36:02 +01:00
parent 45784c7260
commit ecc59591f1

View File

@ -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__