tolower remove

https://github.com/warmcat/libwebsockets/issues/403

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2016-01-20 07:55:41 +08:00
parent bc4012916d
commit f38ad33ddf

View file

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