aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-21 15:40:20 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-21 22:13:35 -0500
commit55d3f89d22c7bac5c5da2c83fc7c9a0504185747 (patch)
tree654aada0a84f126666cbd913db7c266f0c01b713 /MediaBrowser.Common.Implementations
parent570d63d783e4975486f907b5d63d8af954044723 (diff)
disable http compression
Diffstat (limited to 'MediaBrowser.Common.Implementations')
-rw-r--r--MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
index d8f350207..a6dbf77e9 100644
--- a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
+++ b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
@@ -258,7 +258,17 @@ namespace MediaBrowser.Common.Implementations.Security
try
{
- using (var json = await _httpClient.Post(MBValidateUrl, data, CancellationToken.None).ConfigureAwait(false))
+ var options = new HttpRequestOptions
+ {
+ Url = MBValidateUrl,
+
+ // Seeing block length errors
+ EnableHttpCompression = false
+ };
+
+ options.SetPostData(data);
+
+ using (var json = (await _httpClient.Post(options).ConfigureAwait(false)).Content)
{
reg = _jsonSerializer.DeserializeFromStream<RegRecord>(json);
success = true;