1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Change default JSON Accept to application/json, */*;q=0.5

Close #488
This commit is contained in:
Jakub Roztocil
2020-04-13 22:12:06 +02:00
committed by GitHub
parent 684a4708d7
commit cdf691c212
4 changed files with 18 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ except (ImportError, AttributeError):
FORM_CONTENT_TYPE = 'application/x-www-form-urlencoded; charset=utf-8'
JSON_CONTENT_TYPE = 'application/json'
JSON_ACCEPT = f'{JSON_CONTENT_TYPE}, */*'
JSON_ACCEPT = f'{JSON_CONTENT_TYPE}, */*;q=0.5'
DEFAULT_UA = f'HTTPie/{__version__}'