client: allow empty query param values

This commit is contained in:
Leonid Stryzhevskyi 2023-04-26 00:29:56 +03:00
parent 6ac35bfba0
commit aa58ee530d

View File

@ -95,7 +95,7 @@ oatpp::String ApiClient::formatPath(const StringTemplate& pathTemplate,
bool first = !extra->hasQueryParams;
for(const auto& q : queryParams) {
oatpp::String value = q.second;
if(value && value->size() > 0) {
if(value) {
if (first) {
stream.writeCharSimple('?');
first = false;