From 09e14ee3a325860308f5bccf57f3735bdc105414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Schl=C3=BCter?= Date: Mon, 8 Apr 2019 00:02:18 +0200 Subject: Case insensivity in WWW-Authenticate header --- src/parser/scanner.lxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3