mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
update vendor/ dir to latest w/o heroku, moby
had to lock a lot of things in place
This commit is contained in:
6
vendor/github.com/gin-gonic/gin/utils.go
generated
vendored
6
vendor/github.com/gin-gonic/gin/utils.go
generated
vendored
@@ -100,12 +100,10 @@ func parseAccept(acceptHeader string) []string {
|
||||
parts := strings.Split(acceptHeader, ",")
|
||||
out := make([]string, 0, len(parts))
|
||||
for _, part := range parts {
|
||||
index := strings.IndexByte(part, ';')
|
||||
if index >= 0 {
|
||||
if index := strings.IndexByte(part, ';'); index >= 0 {
|
||||
part = part[0:index]
|
||||
}
|
||||
part = strings.TrimSpace(part)
|
||||
if len(part) > 0 {
|
||||
if part = strings.TrimSpace(part); len(part) > 0 {
|
||||
out = append(out, part)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user