Skip to content

Commit

Permalink
Fixed a bug with the new -J support
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Sep 21, 2013
1 parent 38ca088 commit cd2bc1f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions curlish.py
Expand Up @@ -835,10 +835,8 @@ def _load_json_value(filename):
value = json.loads(value)
except Exception:
fail('Error: invalid JSON data for "%s"' % dkey)
else:
dkey, value = value.split('=', 1)
if value[:1] == '@':
value = _load_json_value(value[1:])
elif value[:1] == '@':
value = _load_json_value(value[1:])
json_pairs.append((dkey, value))

last_arg_was_x = False
Expand Down

0 comments on commit cd2bc1f

Please sign in to comment.