mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-18 15:33:08 +02:00
* BUGFIX: URI::addQueryParameter was adding an extra '?' to the query string
This commit is contained in:
parent
e13708f6d8
commit
d93472fe46
@ -344,8 +344,7 @@ void URI::addQueryParameter(const std::string& param, const std::string& val)
|
||||
{
|
||||
std::string reserved(RESERVED_QUERY);
|
||||
reserved += "=&";
|
||||
if (_query.empty()) _query.append(1, '?');
|
||||
else _query.append(1, '&');
|
||||
if (!_query.empty()) _query.append(1, '&');
|
||||
encode(param, reserved, _query);
|
||||
_query.append(1, '=');
|
||||
encode(val, reserved, _query);
|
||||
|
Loading…
x
Reference in New Issue
Block a user