1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 17:59:04 +00:00

Change the header name from "Cookies" to "Cookie" in http.lua. "Cookies"

is incorrect; see RFC 2109 section 4.3.4.
This commit is contained in:
david
2010-01-09 22:54:37 +00:00
parent d6f8e9edda
commit d38ef0da41

View File

@@ -380,7 +380,7 @@ local buildGet = function( host, port, path, options, cookies )
}
if cookies then
local cookies = buildCookies(cookies, path)
if #cookies > 0 then mod_options["header"]["Cookies"] = cookies end
if #cookies > 0 then mod_options["header"]["Cookie"] = cookies end
end
if options and options.connection
@@ -415,7 +415,7 @@ local buildHead = function( host, port, path, options, cookies )
}
if cookies then
local cookies = buildCookies(cookies, path)
if #cookies > 0 then mod_options["header"]["Cookies"] = cookies end
if #cookies > 0 then mod_options["header"]["Cookie"] = cookies end
end
if options and options.connection
then mod_options["header"]["Connection"] = options.connection
@@ -465,7 +465,7 @@ local buildPost = function( host, port, path, options, cookies, postdata)
if cookies then
local cookies = buildCookies(cookies, path)
if #cookies > 0 then mod_options["header"]["Cookies"] = cookies end
if #cookies > 0 then mod_options["header"]["Cookie"] = cookies end
end
table_augment(mod_options, options or {})