make HTTPAuthenticationParams::parse() add value on end of string

This commit is contained in:
Anton Yabchinskiy 2014-07-08 12:26:13 +04:00
parent 98db64fa04
commit f320ce0a3b

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");
}