Skip to content
Myr

Fix spelling (#2202)

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

authored by John Bampton · committed by thinkerou · parent 59ab588 · Browse files · 2 files+7 added−7 removed
This commit

State

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

Diff stats

2 files+7 added−7 removed

  • other:+7 added−7 removed

2 files+7 added−7 removed

modified:CHANGELOG.md+2 added-2 removed
194 unmodified lines
195- [PERFORMANCE] Custom hand optimized HttpRouter for Gin196- [PERFORMANCE] Misc code optimizations. Inlining, tail call optimizations197- [NEW] Built-in support for golang.org/x/net/context198- [NEW] Any(path, handler). Create a route that matches any path199- [NEW] Refactored rendering pipeline (faster and static typeded)199- [NEW] Refactored rendering pipeline (faster and static typed)200- [NEW] Refactored errors API201- [NEW] IndentedJSON() prints pretty JSON202- [NEW] Added gin.DefaultWriter203- [NEW] UNIX socket support
90 unmodified lines
294- [FIX] BasicAuth() and changes API a little bit295- [FIX] Recovery() middleware only prints panics296- [FIX] Context.Get() does not panic anymore. Use MustGet() instead.297- [FIX] Multiple http.WriteHeader() in NotFound handlers298- [FIX] Engine.Run() panics if http server can't be setted up298- [FIX] Engine.Run() panics if http server can't be set up299- [FIX] Crash when route path doesn't start with '/'300- [FIX] Do not update header when status code is negative301- [FIX] Setting response headers before calling WriteHeader in context.String()302- [FIX] Add MIT license
1 unmodified line
modified:context.go+5 added-5 removed
1001 unmodified lines
1002 if len(c.Accepted) == 0 {1003 return offered[0]1004 }1005 for _, accepted := range c.Accepted {1006 for _, offert := range offered {1006 for _, offer := range offered {1007 // According to RFC 2616 and RFC 2396, non-ASCII characters are not allowed in headers,1008 // therefore we can just iterate over the string without casting it into []rune1009 i := 01010 for ; i < len(accepted); i++ {1011 if accepted[i] == '*' || offert[i] == '*' {1012 return offert1011 if accepted[i] == '*' || offer[i] == '*' {1012 return offer1013 }1014 if accepted[i] != offert[i] {1014 if accepted[i] != offer[i] {1015 break1016 }1017 }1018 if i == len(accepted) {1019 return offert1019 return offer1020 }1021 }1022 }1023 return ""
48 unmodified lines