summaryrefslogtreecommitdiffstats
path: root/src/engine/events/RequestMetadata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/events/RequestMetadata.cpp')
-rw-r--r--src/engine/events/RequestMetadata.cpp2
1 files changed, 1 insertions, 1 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()));