fix turkish character recognition problems

This commit is contained in:
Luke Pulverenti
2017-02-12 17:53:14 -05:00
parent a0f4a628dd
commit a6e7438987
6 changed files with 97 additions and 239 deletions

View File

@@ -22,10 +22,19 @@ namespace ServiceStack
}
string contentType;
var restPath = RestHandler.FindMatchingRestPath(httpReq.HttpMethod, pathInfo, out contentType);
if (restPath != null)
return new RestHandler { RestPath = restPath, RequestName = restPath.RequestType.GetOperationName(), ResponseContentType = 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
};
}
logger.Error("Could not find handler for {0}", pathInfo);
return null;
}
}