mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 02:57:45 +01:00
Merge pull request #142 from RangelReale/develop
* BUGFIX: URI::addQueryParameter was adding an extra '?' to the query string
This commit is contained in:
commit
a3873cbb5f
@ -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…
Reference in New Issue
Block a user