Skip to content

Commit

Permalink
aws#814: treat json as text
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Grangaard committed Aug 21, 2014
1 parent 40541c8 commit e1f20c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions awscli/paramfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def guess_mode_from_file(file_path, mode='r'):
if ctype is not None:
if ctype.startswith('text'):
return mode
elif ctype == 'application/json':
return mode
else:
return mode + 'b'
return mode
Expand Down

0 comments on commit e1f20c0

Please sign in to comment.