byte alignment (#2774)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Lanco · committed by GitHub · parent 372cc4a · Browse files · 1 file·+17 added−17 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+17 added−17 removed
- other:+17 added−17 removed
Provenance
- Commit
9c27053- Tree
9e6943b- Author
Lanco <35420416+lancoLiu@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
372cc4a
1 file changed+17 added−17 removed
modified:gin.go+17 added-17 removed
97 unmodified lines98 // fetched, it falls back to the IP obtained from99 // `(*gin.Context).Request.RemoteAddr`.100 ForwardedByClientIP bool101 102+ // DEPRECATED: USE `TrustedPlatform` WITH VALUE `gin.GoogleAppEngine` INSTEAD103+ // #726 #755 If enabled, it will trust some headers starting with104+ // 'X-AppEngine...' for better integration with that PaaS.105+ AppEngine bool106+107+ // If enabled, the url.RawPath will be used to find parameters.108+ UseRawPath bool109+110+ // If true, the path value will be unescaped.111+ // If UseRawPath is false (by default), the UnescapePathValues effectively is true,112+ // as url.Path gonna be used, which is already unescaped.113+ UnescapePathValues bool114+115+ // RemoveExtraSlash a parameter can be parsed from the URL even with extra slashes.116+ // See the PR #1817 and issue #1644117+ RemoveExtraSlash bool118+119 // List of headers used to obtain the client IP when120 // `(*gin.Engine).ForwardedByClientIP` is `true` and121 // `(*gin.Context).Request.RemoteAddr` is matched by at least one of the122 // network origins of `(*gin.Engine).TrustedProxies`.8 unmodified lines131 // If set to a constant of value gin.Platform*, trusts the headers set by132 // that platform, for example to determine the client IP133 TrustedPlatform string134 118- // DEPRECATED: USE `TrustedPlatform` WITH VALUE `gin.GoogleAppEngine` INSTEAD119- // #726 #755 If enabled, it will trust some headers starting with120- // 'X-AppEngine...' for better integration with that PaaS.121- AppEngine bool122-123- // If enabled, the url.RawPath will be used to find parameters.124- UseRawPath bool125-126- // If true, the path value will be unescaped.127- // If UseRawPath is false (by default), the UnescapePathValues effectively is true,128- // as url.Path gonna be used, which is already unescaped.129- UnescapePathValues bool130-135 // Value of 'maxMemory' param that is given to http.Request's ParseMultipartForm136 // method call.137 MaxMultipartMemory int64138 135- // RemoveExtraSlash a parameter can be parsed from the URL even with extra slashes.136- // See the PR #1817 and issue #1644137- RemoveExtraSlash bool138-139 delims render.Delims140 secureJSONPrefix string141 HTMLRender render.HTMLRender142 FuncMap template.FuncMap484 unmodified lines