Commit e73045d
committed
Allow algorithm names to be upper- or lower-case
The standard doesn't seem to specify whether algorithm names must be
capitalized or lower-case. I had an issue with spurious failures due to
a lower-case algorithm name ("hs256"), so here is a patch that converts
the incoming name to capital letters before looking it up in the
algorithm dictionary.1 parent 0ee3ee5 commit e73045d
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | | - | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
| |||
0 commit comments