HTTP Authentication Schemes #2089

This commit is contained in:
Günter Obiltschnig 2018-03-05 15:32:08 +01:00
parent 603a6e23da
commit d0f2253c51

View File

@ -210,7 +210,7 @@ void HTTPAuthenticationParams::parse(std::string::const_iterator first, std::str
switch (state)
{
case STATE_SPACE:
if (Ascii::isAlphaNumeric(*it) || *it == '_')
if (Ascii::isAlphaNumeric(*it) || *it == '_' || *it == '-')
{
token += *it;
state = STATE_TOKEN;
@ -227,7 +227,7 @@ void HTTPAuthenticationParams::parse(std::string::const_iterator first, std::str
{
state = STATE_EQUALS;
}
else if (Ascii::isAlphaNumeric(*it) || *it == '_')
else if (Ascii::isAlphaNumeric(*it) || *it == '_' || *it == '-')
{
token += *it;
}