aboutsummaryrefslogtreecommitdiff
path: root/ServiceStack/HttpHandlerFactory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ServiceStack/HttpHandlerFactory.cs')
-rw-r--r--ServiceStack/HttpHandlerFactory.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/ServiceStack/HttpHandlerFactory.cs b/ServiceStack/HttpHandlerFactory.cs
index 5f4892d51..3a3f5b348 100644
--- a/ServiceStack/HttpHandlerFactory.cs
+++ b/ServiceStack/HttpHandlerFactory.cs
@@ -22,10 +22,19 @@ namespace ServiceStack
}
string contentType;
- var restPath = RestHandler.FindMatchingRestPath(httpReq.HttpMethod, pathInfo, out contentType);
+ var restPath = RestHandler.FindMatchingRestPath(httpReq.HttpMethod, pathInfo, logger, out contentType);
+
if (restPath != null)
- return new RestHandler { RestPath = restPath, RequestName = restPath.RequestType.GetOperationName(), ResponseContentType = contentType };
+ {
+ return new RestHandler
+ {
+ RestPath = restPath,
+ RequestName = restPath.RequestType.GetOperationName(),
+ ResponseContentType = contentType
+ };
+ }
+ logger.Error("Could not find handler for {0}", pathInfo);
return null;
}
}