mirror of
https://github.com/httpie/cli.git
synced 2025-01-07 14:19:30 +01:00
Use UTF8
constant in FORM_CONTENT_TYPE
as well
This commit is contained in:
parent
c6cbc7dfa5
commit
6633b5ae9b
@ -12,6 +12,7 @@ import requests
|
|||||||
import urllib3
|
import urllib3
|
||||||
from . import __version__
|
from . import __version__
|
||||||
from .cli.dicts import RequestHeadersDict
|
from .cli.dicts import RequestHeadersDict
|
||||||
|
from .constants import UTF8
|
||||||
from .plugins.registry import plugin_manager
|
from .plugins.registry import plugin_manager
|
||||||
from .sessions import get_httpie_session
|
from .sessions import get_httpie_session
|
||||||
from .ssl import AVAILABLE_SSL_VERSION_ARG_MAPPING, HTTPieHTTPSAdapter
|
from .ssl import AVAILABLE_SSL_VERSION_ARG_MAPPING, HTTPieHTTPSAdapter
|
||||||
@ -24,7 +25,7 @@ from .utils import get_expired_cookies, repr_dict
|
|||||||
|
|
||||||
urllib3.disable_warnings()
|
urllib3.disable_warnings()
|
||||||
|
|
||||||
FORM_CONTENT_TYPE = 'application/x-www-form-urlencoded; charset=UTF-8'
|
FORM_CONTENT_TYPE = f'application/x-www-form-urlencoded; charset={UTF8}'
|
||||||
JSON_CONTENT_TYPE = 'application/json'
|
JSON_CONTENT_TYPE = 'application/json'
|
||||||
JSON_ACCEPT = f'{JSON_CONTENT_TYPE}, */*;q=0.5'
|
JSON_ACCEPT = f'{JSON_CONTENT_TYPE}, */*;q=0.5'
|
||||||
DEFAULT_UA = f'HTTPie/{__version__}'
|
DEFAULT_UA = f'HTTPie/{__version__}'
|
||||||
|
Loading…
Reference in New Issue
Block a user