disable http compression
This commit is contained in:
parent
570d63d783
commit
55d3f89d22
|
@ -258,7 +258,17 @@ namespace MediaBrowser.Common.Implementations.Security
|
||||||
|
|
||||||
try
|
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);
|
reg = _jsonSerializer.DeserializeFromStream<RegRecord>(json);
|
||||||
success = true;
|
success = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user