1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-07 05:56:34 +00:00

Fix a bug in header parsing in http.lua. After reading a block of

non-whitespace characters, the position counter was advanced one past
where it was supposed to be. This didn't have any bad effect when the
server used CRLF to separate header fields, because it ate the CR and
still recognized LF as ending the field. But it concatenated multiple
header fields when the server only used LF to separate them.
This commit is contained in:
david
2010-08-18 17:55:27 +00:00
parent 66e1254649
commit de90361073

View File

@@ -521,7 +521,6 @@ local function parse_header(header, response)
pos = pos + 1
end
words[#words + 1] = string.sub(header, s, pos - 1)
pos = pos + 1
pos = skip_lws(header, pos)
end