This commit is contained in:
Somdev Sangwan
2021-03-11 20:29:33 +05:30
committed by GitHub
parent 5b39a39aa2
commit 1e2d673dc8

View File

@@ -261,7 +261,7 @@ def prepare_requests(args):
'Upgrade-Insecure-Requests': '1'
}
if type(args.headers) == str:
args.headers = extract_headers(headers)
headers = extract_headers(args.headers)
elif args.headers:
headers = extract_headers(prompt())
if mem.var['method'] == 'JSON':
@@ -293,6 +293,7 @@ def dict_to_xml(dict_obj):
"""
return dicttoxml(dict_obj, root=False, attr_type=False).decode('utf-8')
def compatible_path(path):
"""
converts filepaths to be compatible with the host OS