diff options
Diffstat (limited to 'src/engine/events')
-rw-r--r-- | src/engine/events/RequestMetadata.cpp | 2 | ||||
-rw-r--r-- | src/engine/events/SetMetadata.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/events/RequestMetadata.cpp b/src/engine/events/RequestMetadata.cpp index 4d879298..69c5b271 100644 --- a/src/engine/events/RequestMetadata.cpp +++ b/src/engine/events/RequestMetadata.cpp @@ -59,7 +59,7 @@ RequestMetadata::RequestMetadata(Engine& engine, void RequestMetadata::pre_process() { - const bool is_object = (_uri.scheme() == Path::scheme && Path::is_valid(_uri.str())); + const bool is_object = Path::is_path(_uri); if (_request->client()) { if (is_object) _resource = _engine.engine_store()->find_object(Path(_uri.str())); diff --git a/src/engine/events/SetMetadata.cpp b/src/engine/events/SetMetadata.cpp index a44261d4..6b0e5832 100644 --- a/src/engine/events/SetMetadata.cpp +++ b/src/engine/events/SetMetadata.cpp @@ -99,7 +99,7 @@ SetMetadata::pre_process() { typedef Properties::const_iterator iterator; - bool is_graph_object = (_subject.scheme() == Path::scheme && Path::is_valid(_subject.str())); + const bool is_graph_object = Path::is_path(_subject); _object = is_graph_object ? _engine.engine_store()->find_object(Path(_subject.str())) |