Skip to content

Commit

Permalink
URI added query removal
Browse files Browse the repository at this point in the history
  • Loading branch information
danovaro committed Oct 26, 2023
1 parent ab856f0 commit 92de2bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/eckit/filesystem/URI.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@ std::string URI::authority() const {
}

void URI::query(const std::string& attribute, const std::string& value) {
queryValues_[attribute] = encode(value);
if (value.empty()) {
queryValues_.erase(attribute);
} else {
queryValues_[attribute] = encode(value);
}
}

const std::string URI::query(const std::string& attribute) const {
Expand Down

0 comments on commit 92de2bd

Please sign in to comment.