mirror of
https://github.com/nmap/nmap.git
synced 2026-06-20 07:29:59 +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:
parent
d6f8e9edda
commit
d38ef0da41
1 changed files with 3 additions and 3 deletions
|
|
@ -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 {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue