Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='uncurl',
version='0.0.8',
version='0.0.8.1',
description='A library to convert curl requests to python-requests.',
author='Steve Pulec',
author_email='spulec@gmail',
Expand Down
2 changes: 1 addition & 1 deletion uncurl/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def parse(curl_command):

# If we found JSON and it is a dict, pull it apart. Otherwise, just leave as a string
if post_data_json and isinstance(post_data_json, dict):
post_data = dict_to_pretty_string(post_data_json)
post_data = '"""\n{}{}\n"""'.format(base_indent, dict_to_pretty_string(post_data_json))
else:
post_data = "'{}'".format(post_data)

Expand Down