summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuboš Doležel <lubos@dolezel.info>2019-04-08 09:53:17 +0200
committerGitHub <noreply@github.com>2019-04-08 09:53:17 +0200
commit9932836f754b04c1fd00fbcbd9e134e48147f5e6 (patch)
tree967c84df7510d3e378d728e29755ad607ea46b57
parentf01694469e873e4d3ef61ed1f9afd19135fafa69 (diff)
parent09e14ee3a325860308f5bccf57f3735bdc105414 (diff)
downloadtwinkle-9932836f754b04c1fd00fbcbd9e134e48147f5e6.tar
twinkle-9932836f754b04c1fd00fbcbd9e134e48147f5e6.tar.gz
twinkle-9932836f754b04c1fd00fbcbd9e134e48147f5e6.tar.lz
twinkle-9932836f754b04c1fd00fbcbd9e134e48147f5e6.tar.xz
twinkle-9932836f754b04c1fd00fbcbd9e134e48147f5e6.zip
Merge pull request #140 from f0k/patch-1
Case insensivity in WWW-Authenticate header
-rw-r--r--src/parser/scanner.lxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/scanner.lxx b/src/parser/scanner.lxx
index e18c4f1..193b9a8 100644
--- a/src/parser/scanner.lxx
+++ b/src/parser/scanner.lxx
@@ -131,7 +131,7 @@ WORD_SYM [[:alnum:]\-\.!%\*_\+\`\'~\(\)<>:\\\"\/\[\]\?\{\}]
^User-Agent { return T_HDR_USER_AGENT; }
^(Via)|v { return T_HDR_VIA; }
^Warning { return T_HDR_WARNING; }
-^WWW-Authenticate { return T_HDR_WWW_AUTHENTICATE; }
+^[Ww][Ww][Ww]-[Aa]uthenticate { return T_HDR_WWW_AUTHENTICATE; }
^{TOKEN_SYM}+ { yylval.yyt_str = new string(yytext);
MEMMAN_NEW(yylval.yyt_str);
return T_HDR_UNKNOWN; }