http charsets have case insensitive tokens
authorOleg Golosovskiy <ogolosovskiy@unison.com>
Tue, 4 Oct 2011 12:20:14 +0000 (20:20 +0800)
committerAndy Green <andy@warmcat.com>
Tue, 4 Oct 2011 12:20:14 +0000 (20:20 +0800)
commit2ef75057cd39dd013db9bac1ee7ef70b4cbe8f0b
tree45c20acd11e43f8df212853b08606f7cef7b4940
parent7b11fec7ca91be742d6c96cb27ee9fca015e456c
http charsets have case insensitive tokens

 Andy,

According http://www.ietf.org/rfc/rfc2616.txt HTTP character sets are identified by case-insensitive tokens.

Please replase

                     if (strcmp(lws_tokens[n].token, wsi->name_buffer))
                           continue;

to

                     if (stricmp(lws_tokens[n].token, wsi->name_buffer))
                           continue;

Oleg

Also introduce strcasecmp definition for win32

Signed-off-by: Oleg Golosovskiy <ogolosovskiy@unison.com>
lib/libwebsockets.h
lib/parsers.c