Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb9f669

Browse files
committed
More verbose comments
1 parent 8576817 commit fb9f669

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/core/option.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,24 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
167167
elif "?" in line and "=" in line and ": " not in line:
168168
params = True
169169

170-
# Cookie and Host headers
170+
# Headers
171171
elif ": " in line:
172172
key, value = line.split(": ", 1)
173173

174+
# Cookie and Host headers
174175
if key.lower() == "cookie":
175176
cookie = value
176177
elif key.lower() == "host":
177178
host = value
178179

180+
# Avoid to add a static content length header to
181+
# conf.httpHeaders and consider the following lines as
182+
# POSTed data
179183
if key == "Content-Length":
180184
data = ""
181185
params = True
182186

187+
# Avoid proxy and connection type related headers
183188
elif key not in ( "Proxy-Connection", "Connection" ):
184189
conf.httpHeaders.append((str(key), str(value)))
185190

0 commit comments

Comments
 (0)