aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
diff options
context:
space:
mode:
authorTechywarrior <techywarrior@gmail.com>2013-03-31 15:45:18 -0700
committerTechywarrior <techywarrior@gmail.com>2013-03-31 15:45:18 -0700
commit7b91103ec59aa5c3dcacc52c580f4b884d436c42 (patch)
tree0ed3bb79646b6495eaa16214a71f87ac18fdf435 /MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
parentb7c3bc592f4525428df1ac86d57ffb340a001dc6 (diff)
parent9f06eb781f5992496a7b1a59fb55b0aa6520261f (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
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)
{