tolower remove
https://github.com/warmcat/libwebsockets/issues/403 Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
bc4012916d
commit
f38ad33ddf
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ unsigned char lextable[] = {
|
|||
|
||||
int lextable_decode(int pos, char c)
|
||||
{
|
||||
c = tolower(c);
|
||||
if (c >= 'A' && c <= 'Z')
|
||||
c += 'a' - 'A';
|
||||
|
||||
while (1) {
|
||||
if (lextable[pos] & (1 << 7)) { /* 1-byte, fail on mismatch */
|
||||
|
|
Loading…
Add table
Reference in a new issue