mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 18:22:23 +08:00
refactor: using requestHeader internal func.
This commit is contained in:
parent
fa391a4864
commit
0e092d98b5
@ -509,7 +509,7 @@ func (c *Context) ClientIP() string {
|
||||
}
|
||||
|
||||
if c.engine.AppEngine {
|
||||
if addr := c.Request.Header.Get("X-Appengine-Remote-Addr"); addr != "" {
|
||||
if addr := c.requestHeader("X-Appengine-Remote-Addr"); addr != "" {
|
||||
return addr
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user