1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00
This commit is contained in:
Jakub Roztocil
2014-05-05 21:17:23 +02:00
parent 5a989b6075
commit d9eca19b8f
19 changed files with 57 additions and 57 deletions

View File

@@ -40,7 +40,7 @@ def get_response(args, config_dir):
def encode_headers(headers):
# This allows for unicode headers which is non-standard but practical.
# See: https://github.com/jkbr/httpie/issues/212
# See: https://github.com/jakubroztocil/httpie/issues/212
return dict(
(name, value.encode('utf8') if isinstance(value, str) else value)
for name, value in headers.items()