diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-02-12 17:53:14 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-02-12 17:53:14 -0500 |
| commit | a6e7438987ebd0ef2c44940f76e6efd487803e02 (patch) | |
| tree | ce2de4a9ecc13dc97eb8eeb5346de0e191ec6e5a /ServiceStack/HttpHandlerFactory.cs | |
| parent | a0f4a628dd1f7f374cd992aca97f5d50a70c3d02 (diff) | |
fix turkish character recognition problems
Diffstat (limited to 'ServiceStack/HttpHandlerFactory.cs')
| -rw-r--r-- | ServiceStack/HttpHandlerFactory.cs | 13 |
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; } } |
