1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 19:09:01 +00:00

o [NSE] Modified the http library to support servers that don't return valid

chunked encoded data, such as the Citrix XML service. [Patrik]
This commit is contained in:
patrik
2011-11-07 06:04:13 +00:00
parent 03a75885e7
commit b66a4849c4
2 changed files with 6 additions and 1 deletions

View File

@@ -493,7 +493,9 @@ local function recv_chunked(s, partial)
line, partial = recv_line(s, partial)
if not line then
return nil, string.format("Didn't find CRLF after chunk-data.")
-- this warning message was initially an error but was adapted
-- to support broken servers, such as the Citrix XML Service
stdnse.print_debug(2, "Didn't find CRLF after chunk-data.")
elseif not string.match(line, "^\r?\n") then
return nil, string.format("Didn't find CRLF after chunk-data; got %q.", line)
end