🐛 Fixed invalid slice indexing for JWT value

This commit is contained in:
Maxim Lebedev 2022-02-26 04:16:11 +05:00
parent 3672d2fcad
commit eb02839e54
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 1 additions and 1 deletions

View File

@ -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