File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments