Skip to content

Commit

Permalink
Fix the comment after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
skwijeratne committed Apr 26, 2023
1 parent 592f2c1 commit d268fdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/http.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ namespace Pistache::Http
if (!request->query_.has(key)) {
request->query_.add(std::move(key), std::move(value));
} else {
// If an existing param, append it to the current value seperated by ','
// so that down stream the values will be converted to std::vector of multiple values.
std::string newValue = request->query_.get(key).get();
// If an existing param, append it to the current value seperated by ','
// so that down stream the values will be converted to std::vector of multiple values.
std::string newValue = request->query_.get(key).value();
newValue += "," + value;
request->query_.update(key, std::move(newValue));
}
Expand Down

0 comments on commit d268fdc

Please sign in to comment.