Changed so that the stdnse.get_hostname method is used to determine the contents of the

Host request header.
This commit is contained in:
patrik 2012-05-13 12:16:38 +00:00
parent c5cf1ab6e2
commit 45164ba18c

View file

@ -136,7 +136,7 @@ AJP = {
-- add host header if it's missing
if ( not(self.headers['host']) ) then
self.headers['host'] = self.host.ip
self.headers['host'] = stdnse.get_hostname(self.host)
end
-- add keep-alive connection header if missing