🐛 Fixed invalid slice indexing for JWT value
This commit is contained in:
parent
3672d2fcad
commit
eb02839e54
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ func valuesFromHeader(header, valuePrefix string) ValuesExtractor {
|
|||
}
|
||||
|
||||
if len(value) > prefixLen && bytes.EqualFold(value[:prefixLen], []byte(valuePrefix)) {
|
||||
return append([][]byte{}, value[:prefixLen]), nil
|
||||
return append([][]byte{}, value[prefixLen:]), nil
|
||||
}
|
||||
|
||||
return nil, errHeaderExtractorValueInvalid
|
||||
|
|
Loading…
Reference in a new issue