Skip to content

Commit 800965e

Browse files
committed
Questions about lists of one-item dicts
1 parent 37384db commit 800965e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xssless.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def parse_request(input_var, url):
6666
rtypeList = rtype_line.split(" ")
6767

6868
# Create a list of the headers:
69+
# TODO Why would you do this rather than just have headerDict['Cookies'] = "PHPSESSID=5fffa5e6e11ddcf3c722533c14adc310"?
6970
# headerList[0]['Key'] = "Cookies"
7071
# headerList[0]['Value'] = "PHPSESSID=5fffa5e6e11ddcf3c722533c14adc310"
7172
headerList = []
@@ -123,6 +124,7 @@ def parse_request(input_var, url):
123124

124125
else:
125126
# Create a list of body values (check for JSON, etc)
127+
# TODO again, why this rather than just a dict?
126128
# bodyList[0]['Key'] = "username"
127129
# bodyList[0]['Value'] = "mandatory"
128130
body_var_List = body_data.split("&")
@@ -169,6 +171,7 @@ def parse_response(input_var, url):
169171
rtypeList = rtype_line.split(" ")
170172

171173
# Create a list of the headers:
174+
# TODO again, why this rather than just a dict?
172175
# headerList[0]['Key'] = "Cookies"
173176
# headerList[0]['Value'] = "PHPSESSID=5fffa5e6e11ddcf3c722533c14adc310"
174177
headerList = []

0 commit comments

Comments
 (0)