mirror of
https://github.com/labstack/echo.git
synced 2025-01-12 01:22:21 +02:00
add proto field for middleware
This commit is contained in:
parent
d8a6dad02d
commit
146100093e
@ -33,6 +33,7 @@ type (
|
|||||||
// - host
|
// - host
|
||||||
// - method
|
// - method
|
||||||
// - path
|
// - path
|
||||||
|
// - proto
|
||||||
// - referer
|
// - referer
|
||||||
// - user_agent
|
// - user_agent
|
||||||
// - status
|
// - status
|
||||||
@ -154,6 +155,8 @@ func LoggerWithConfig(config LoggerConfig) echo.MiddlewareFunc {
|
|||||||
p = "/"
|
p = "/"
|
||||||
}
|
}
|
||||||
return buf.WriteString(p)
|
return buf.WriteString(p)
|
||||||
|
case "proto":
|
||||||
|
return buf.WriteString(req.Proto)
|
||||||
case "referer":
|
case "referer":
|
||||||
return buf.WriteString(req.Referer())
|
return buf.WriteString(req.Referer())
|
||||||
case "user_agent":
|
case "user_agent":
|
||||||
|
Loading…
Reference in New Issue
Block a user