🐛 Fixed invalid slice indexing for JWT value

master v0.9.1
Maxim Lebedev 9 months ago
parent 3672d2fcad
commit eb02839e54
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
  1. 2
      extractor.go

@ -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…
Cancel
Save