aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-03-31 13:39:28 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-03-31 13:39:28 -0400
commit9f06eb781f5992496a7b1a59fb55b0aa6520261f (patch)
tree0ed3bb79646b6495eaa16214a71f87ac18fdf435 /MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
parentb7c3bc592f4525428df1ac86d57ffb340a001dc6 (diff)
fixes #97 and creates a library dictionary cache to avoid FindById recursion
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
index 681b08825..edb227c79 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
@@ -127,6 +127,8 @@ namespace MediaBrowser.Server.Implementations.HttpServer
EndpointHostConfig.Instance.MetadataRedirectPath = "metadata";
}
+ protected static readonly CultureInfo UsCulture = new CultureInfo("en-US");
+
/// <summary>
/// Configures the specified container.
/// </summary>
@@ -184,7 +186,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
if (hasOptions.Options.TryGetValue("Content-Length", out contentLength) && !string.IsNullOrEmpty(contentLength))
{
- var length = long.Parse(contentLength);
+ var length = long.Parse(contentLength, UsCulture);
if (length > 0)
{