From 45164ba18ccd7adefad10d085af6305f137f785b Mon Sep 17 00:00:00 2001 From: patrik Date: Sun, 13 May 2012 12:16:38 +0000 Subject: [PATCH] Changed so that the stdnse.get_hostname method is used to determine the contents of the Host request header. --- nselib/ajp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/ajp.lua b/nselib/ajp.lua index 960645ba1..7d915270f 100644 --- a/nselib/ajp.lua +++ b/nselib/ajp.lua @@ -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