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

Updated README and docs.

This commit is contained in:
Jakub Roztocil
2012-04-25 02:10:58 +02:00
parent c5b1aaaa28
commit 7910269996
3 changed files with 78 additions and 46 deletions

View File

@@ -30,7 +30,7 @@ def _get_response(parser, args, stdin, stdin_isatty):
if stdin_isatty:
# Serialize the parsed data.
args.data = json.dumps(args.data)
if args.method.lower() == 'get' and 'Accept' not in args.headers:
if 'Accept' not in args.headers:
# Default Accept to JSON as well.
args.headers['Accept'] = 'application/json'
elif not args.files and 'Content-Type' not in args.headers: