Skip to content

Commit

Permalink
change curl header
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Jun 20, 2018
1 parent 7950a99 commit 23ead3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/curl2req.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def parse_curl(curl_content):
ender_list = ender.split(' --')

# useful infomation
url = param_list[0].rstrip('curl \'')
url = param_list[0][param_list[0].rfind('\'') + 1:]
head_list = param_list[1:-1] + [ender_list[0].strip('\'')]
head_dict = build_head(head_list)

Expand Down

0 comments on commit 23ead3d

Please sign in to comment.