aboutsummaryrefslogtreecommitdiff
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:01:29 -0500
commitccd237c4ded8dda7edfd6b7ab0fa86731cbad1ff (patch)
tree6d59086af4b1d2422262efaa92b041290b695edf
parent7e0f97b2c371e6d96dc1ed0748f8054e27e82ea1 (diff)
disable http compression
-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;