Added user agent in HTTP pages (including alerts)

This commit is contained in:
Luca 2022-01-31 11:36:07 +01:00
parent f3c1198172
commit d0a39b85ef
6 changed files with 48 additions and 24 deletions

View file

@ -4747,6 +4747,12 @@ function addHTTPInfoToAlertDescr(msg, alert_json)
alert_json["proto"]["http"]["last_return_code"])
end
if alert_json["proto"]["http"]["last_user_agent"] then
msg = msg .. string.format(" [%s: %s]",
i18n("last_user_agent"),
alert_json["proto"]["http"]["last_user_agent"])
end
if alert_json["proto"]["http"]["last_url"] then
msg = msg .. string.format(" [%s: %s]",
i18n("last_url"),