fix HTTPLog panic with no User-Agent

This commit is contained in:
ari melody 2025-08-16 22:35:49 +01:00
parent c49084afb0
commit c63a090569
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -626,6 +626,6 @@ func HTTPLog(next http.Handler) http.Handler {
lrw.Status,
colour.Reset,
elapsed,
r.Header["User-Agent"][0])
r.Header.Get("User-Agent"))
})
}