mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added info formatter for dns and http (#6931)
This commit is contained in:
parent
eb3c87582f
commit
cd9cafa146
2 changed files with 38 additions and 17 deletions
|
|
@ -1332,8 +1332,12 @@ end
|
|||
|
||||
function format_http_info(http_info)
|
||||
if http_info["last_return_code"] then
|
||||
local badge = get_badge(http_info.last_return_code == 200)
|
||||
http_info["last_return_code"] = string.format('<span class="badge bg-%s">%s</span>', badge, http_utils.getResponseStatusCode(http_info["last_return_code"]))
|
||||
if http_info["last_return_code"] ~= 0 then
|
||||
local badge = get_badge(http_info.last_return_code == 200)
|
||||
http_info["last_return_code"] = string.format('<span class="badge bg-%s">%s</span>', badge, http_utils.getResponseStatusCode(http_info["last_return_code"]))
|
||||
else
|
||||
http_info["last_return_code"] = nil
|
||||
end
|
||||
end
|
||||
|
||||
if http_info["last_method"] then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue