Skip to content
Myr

Fix typo (#2772)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Lanco · committed by GitHub · parent 690aa2b · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:context.go+1 added-1 removed
730 unmodified lines
731// If it's it will then try to parse the headers defined in Engine.RemoteIPHeaders (defaulting to [X-Forwarded-For, X-Real-Ip]).732// If the headers are nots syntactically valid OR the remote IP does not correspong to a trusted proxy,733// the remote IP (coming form Request.RemoteAddr) is returned.734func (c *Context) ClientIP() string {735 // Check if we're running on a tursted platform735 // Check if we're running on a trusted platform736 switch c.engine.TrustedPlatform {737 case PlatformGoogleAppEngine:738 if addr := c.requestHeader("X-Appengine-Remote-Addr"); addr != "" {739 return addr
458 unmodified lines