Skip to content

Commit

Permalink
bug in setting host header
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed Sep 22, 2017
1 parent 050225a commit ce2c58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfuzz/externals/reqresp/Request.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __getattr__ (self,name):
def setUrl (self, urltmp):
self.__variablesGET=VariablesSet()
self.schema,self.__host,self.__path,self.__params,variables,f=urlparse(urltmp)
if "Host" not in self._headers:
if "Host" not in self._headers or (not self._headers["Host"]):
self._headers["Host"]=self.__host

if variables:
Expand Down

0 comments on commit ce2c58e

Please sign in to comment.