Update all dependencies
Note: should we ditch vendoring? Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
22fde8d30e
commit
0093393bc3
371 changed files with 91052 additions and 25816 deletions
13
vendor/github.com/go-openapi/runtime/middleware/header/header.go
generated
vendored
13
vendor/github.com/go-openapi/runtime/middleware/header/header.go
generated
vendored
|
|
@ -25,6 +25,11 @@ const (
|
|||
isSpace
|
||||
)
|
||||
|
||||
const (
|
||||
asciiMaxControlChar = 31
|
||||
asciiMaxChar = 127
|
||||
)
|
||||
|
||||
func init() {
|
||||
// OCTET = <any 8-bit sequence of data>
|
||||
// CHAR = <any US-ASCII character (octets 0 - 127)>
|
||||
|
|
@ -42,10 +47,10 @@ func init() {
|
|||
// token = 1*<any CHAR except CTLs or separators>
|
||||
// qdtext = <any TEXT except <">>
|
||||
|
||||
for c := 0; c < 256; c++ {
|
||||
for c := range 256 {
|
||||
var t octetType
|
||||
isCtl := c <= 31 || c == 127
|
||||
isChar := 0 <= c && c <= 127
|
||||
isCtl := c <= asciiMaxControlChar || c == asciiMaxChar
|
||||
isChar := 0 <= c && c <= asciiMaxChar
|
||||
isSeparator := strings.ContainsRune(" \t\"(),/:;<=>?@[]\\{}", rune(c))
|
||||
if strings.ContainsRune(" \t\r\n", rune(c)) {
|
||||
t |= isSpace
|
||||
|
|
@ -92,7 +97,7 @@ func ParseList(header http.Header, key string) []string {
|
|||
end := 0
|
||||
escape := false
|
||||
quote := false
|
||||
for i := 0; i < len(s); i++ {
|
||||
for i := range len(s) {
|
||||
b := s[i]
|
||||
switch {
|
||||
case escape:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue