This commit is contained in:
Somdev Sangwan
2021-03-11 05:15:37 +05:30
committed by GitHub
parent 912b4399c6
commit bebfef4448

View File

@@ -259,10 +259,10 @@ def prepare_requests(args):
'Connection': 'close',
'Upgrade-Insecure-Requests': '1'
}
if type(headers) == bool:
if type(args.headers) == str:
args.headers = extract_headers(headers)
elif args.headers:
headers = extract_headers(prompt())
elif type(headers) == str:
headers = extract_headers(headers)
if mem.var['method'] == 'JSON':
headers['Content-type'] = 'application/json'
if args.url: