Merge pull request #487 from a12n/develop

make HTTPAuthenticationParams::parse() add value on end of string
This commit is contained in:
Aleksandar Fabijanic
2014-07-08 12:03:50 -05:00

View File

@@ -298,6 +298,9 @@ void HTTPAuthenticationParams::parse(std::string::const_iterator first, std::str
}
}
if (state == STATE_VALUE)
add(token, value);
if (!(state & STATE_FINAL))
throw SyntaxException("Invalid authentication information");
}