mirror of
https://github.com/httpie/cli.git
synced 2024-11-28 18:53:21 +01:00
Disable urllib3's "Unverified HTTPS request is being made" warnings
This commit is contained in:
parent
45784c7260
commit
ecc59591f1
@ -3,6 +3,7 @@ import sys
|
|||||||
from pprint import pformat
|
from pprint import pformat
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
from requests.packages import urllib3
|
||||||
|
|
||||||
from httpie import sessions
|
from httpie import sessions
|
||||||
from httpie import __version__
|
from httpie import __version__
|
||||||
@ -10,6 +11,10 @@ from httpie.compat import str
|
|||||||
from httpie.plugins import plugin_manager
|
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'
|
FORM = 'application/x-www-form-urlencoded; charset=utf-8'
|
||||||
JSON = 'application/json'
|
JSON = 'application/json'
|
||||||
DEFAULT_UA = 'HTTPie/%s' % __version__
|
DEFAULT_UA = 'HTTPie/%s' % __version__
|
||||||
|
Loading…
Reference in New Issue
Block a user