mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
HTTP Authentication Schemes #2089
This commit is contained in:
parent
603a6e23da
commit
d0f2253c51
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user