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