disable http compression

pull/702/head
Luke Pulverenti 9 years ago
parent 7e0f97b2c3
commit ccd237c4de

@ -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;

Loading…
Cancel
Save