Skip to content

Commit 4ad9526

Browse files
joeADSPthinkerou
authored andcommitted
Fix grammatical and spelling errors in context.go (#2883)
1 parent ccec19a commit 4ad9526

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

context.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,8 @@ func (c *Context) ShouldBindBodyWith(obj interface{}, bb binding.BindingBody) (e
728728

729729
// ClientIP implements a best effort algorithm to return the real client IP.
730730
// It called c.RemoteIP() under the hood, to check if the remote IP is a trusted proxy or not.
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,
731+
// If it is 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 not syntactically valid OR the remote IP does not correspond to a trusted proxy,
733733
// the remote IP (coming form Request.RemoteAddr) is returned.
734734
func (c *Context) ClientIP() string {
735735
// Check if we're running on a trusted platform

0 commit comments

Comments
 (0)