Repository: reef Updated Branches: refs/heads/master c4cb3156e -> cfdb2bf5d
[REEF-1497] Fix .NET Core compatibility issues in REEF.Driver System.String.ToLower() calls are not supported in .NET Core So replacing with calls to CultureInfo.CurrentCulture.TextInfo.ToLower(). JIRA: [REEF-1497](https://issues.apache.org/jira/browse/REEF-1497) Pull Request: Closes #1082 Project: http://git-wip-us.apache.org/repos/asf/reef/repo Commit: http://git-wip-us.apache.org/repos/asf/reef/commit/cfdb2bf5 Tree: http://git-wip-us.apache.org/repos/asf/reef/tree/cfdb2bf5 Diff: http://git-wip-us.apache.org/repos/asf/reef/diff/cfdb2bf5 Branch: refs/heads/master Commit: cfdb2bf5dff50c4f6f0852f5267011f5bca14d2c Parents: c4cb315 Author: Doug Service <[email protected]> Authored: Fri Jul 29 22:41:07 2016 -0700 Committer: Shravan M Narayanamurthy <[email protected]> Committed: Mon Aug 1 18:39:46 2016 -0700 ---------------------------------------------------------------------- lang/cs/Org.Apache.REEF.Driver/Bridge/HttpServerHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/reef/blob/cfdb2bf5/lang/cs/Org.Apache.REEF.Driver/Bridge/HttpServerHandler.cs ---------------------------------------------------------------------- diff --git a/lang/cs/Org.Apache.REEF.Driver/Bridge/HttpServerHandler.cs b/lang/cs/Org.Apache.REEF.Driver/Bridge/HttpServerHandler.cs index 8dae22b..9fd796f 100644 --- a/lang/cs/Org.Apache.REEF.Driver/Bridge/HttpServerHandler.cs +++ b/lang/cs/Org.Apache.REEF.Driver/Bridge/HttpServerHandler.cs @@ -58,7 +58,7 @@ namespace Org.Apache.REEF.Driver.Bridge Exceptions.Throw(new ArgumentException("spec cannot contain :"), "The http spec given is " + spec, LOGGER); } LOGGER.Log(Level.Info, "HttpHandler spec:" + spec); - eventHandlers.Add(spec.ToLower(CultureInfo.CurrentCulture), h); + eventHandlers.Add(CultureInfo.CurrentCulture.TextInfo.ToLower(spec), h); } this.httpServerPort = httpServerPort; } @@ -99,7 +99,7 @@ namespace Org.Apache.REEF.Driver.Bridge ReefHttpResponse response = new ReefHttpResponse(); IHttpHandler handler; - eventHandlers.TryGetValue(spec.ToLower(CultureInfo.CurrentCulture), out handler); + eventHandlers.TryGetValue(CultureInfo.CurrentCulture.TextInfo.ToLower(spec), out handler); byte[] responseData; if (handler != null)
