From 934455121c551b39fd351afc90ce54e6139d8cb1 Mon Sep 17 00:00:00 2001 From: DeemOnSecurity Date: Tue, 24 Jan 2023 09:22:51 -0500 Subject: [PATCH] Fix key check in request --- webcrab.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webcrab.py b/webcrab.py index 7b547f7..b38fdaf 100644 --- a/webcrab.py +++ b/webcrab.py @@ -33,11 +33,11 @@ def sendrequest(r): print(f"Missing required parameter {x} in request. \n\n{r}") sys.exit() - if 'headers' not in 'r': + if 'headers' not in r: r['headers']={} - if 'body' not in 'r': + if 'body' not in r: r['body']='' - if 'port' in 'r': + if 'port' in r: url = r['scheme']+'://'+r['host']+':'+r['port']+r['url'] else: url = r['scheme']+'://'+r['host']+r['url']