1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-05 00:58:47 +02:00

rename proto to protocol

This commit is contained in:
Kesus Kim
2018-07-11 15:04:36 +09:00
committed by Vishal Rana
parent 2a5460328f
commit 09dcba1d39
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ type (
// - host
// - method
// - path
// - proto
// - protocol
// - referer
// - user_agent
// - status
@ -155,7 +155,7 @@ func LoggerWithConfig(config LoggerConfig) echo.MiddlewareFunc {
p = "/"
}
return buf.WriteString(p)
case "proto":
case "protocol":
return buf.WriteString(req.Proto)
case "referer":
return buf.WriteString(req.Referer())