1
0
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:
Kesus Kim 2018-06-29 14:11:02 +09:00 committed by Vishal Rana
parent d8a6dad02d
commit 146100093e

View File

@ -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":