From d980b819551390e51f47656815163516d6d9c48e Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Wed, 16 Aug 2023 16:46:41 -0700 Subject: [PATCH] be accepting of an empty PUT path --- libs/server-sdk/src/data_sources/data_source_event_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/server-sdk/src/data_sources/data_source_event_handler.cpp b/libs/server-sdk/src/data_sources/data_source_event_handler.cpp index 27ee00ece..2d8c436b3 100644 --- a/libs/server-sdk/src/data_sources/data_source_event_handler.cpp +++ b/libs/server-sdk/src/data_sources/data_source_event_handler.cpp @@ -62,7 +62,7 @@ tl::expected, 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");