From f320ce0a3be4086be4039565a2365b3e5e484880 Mon Sep 17 00:00:00 2001 From: Anton Yabchinskiy Date: Tue, 8 Jul 2014 12:26:13 +0400 Subject: [PATCH] make HTTPAuthenticationParams::parse() add value on end of string --- Net/src/HTTPAuthenticationParams.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Net/src/HTTPAuthenticationParams.cpp b/Net/src/HTTPAuthenticationParams.cpp index f88e5af46..53eff21fa 100644 --- a/Net/src/HTTPAuthenticationParams.cpp +++ b/Net/src/HTTPAuthenticationParams.cpp @@ -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"); }