Skip to content

Commit

Permalink
Fix typo (gin-gonic#2772)
Browse files Browse the repository at this point in the history
(cherry picked from commit 372cc4a)
  • Loading branch information
lancoLiu authored and Bisstocuz committed Nov 22, 2021
1 parent cbf2789 commit 2b21025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ func (c *Context) ShouldBindBodyWith(obj interface{}, bb binding.BindingBody) (e
// If the headers are nots syntactically valid OR the remote IP does not correspong to a trusted proxy,
// the remote IP (coming form Request.RemoteAddr) is returned.
func (c *Context) ClientIP() string {
// Check if we're running on a tursted platform
// Check if we're running on a trusted platform
switch c.engine.TrustedPlatform {
case PlatformGoogleAppEngine:
if addr := c.requestHeader("X-Appengine-Remote-Addr"); addr != "" {
Expand Down

0 comments on commit 2b21025

Please sign in to comment.