Skip to content

Commit

Permalink
be accepting of an empty PUT path
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Aug 17, 2023
1 parent d148f09 commit d980b81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ tl::expected<std::optional<DataSourceEventHandler::Put>, JsonError> tag_invoke(
auto const& obj = json_value.as_object();
PARSE_FIELD(path, obj, "path");
// We don't know what to do with a path other than "/".
if (path != "/") {
if (!(path == "/" || path.empty())) {
return std::nullopt;
}
PARSE_FIELD(put.data, obj, "data");
Expand Down

0 comments on commit d980b81

Please sign in to comment.