From 842f9e68048b8f6cb7596c537b973df748f8fcc7 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 7 Feb 2013 23:43:50 +0000 Subject: [PATCH] Revert "Lower-case scheme comparisons." Handle it at the url.parse level. --- nselib/http.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nselib/http.lua b/nselib/http.lua index 171471404..d10730ea4 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -1414,8 +1414,8 @@ local function parse_redirect(host, port, path, response) end -- do port fixup if ( not(u.port) ) then - if ( string.lower(u.scheme) == "http" ) then u.port = 80 - elseif ( string.lower(u.scheme) == "https") then u.port = 443 + if ( u.scheme == "http" ) then u.port = 80 + elseif ( u.scheme == "https") then u.port = 443 else u.port = port.number end end if ( not(u.path) ) then