Bug fix #158 : troublesome check is unnecessary anyway

This commit is contained in:
Robert McRackan 2021-12-07 16:06:15 -05:00
parent de45d008c7
commit d705c23472
2 changed files with 1 additions and 4 deletions

View File

@ -193,9 +193,6 @@ namespace AaxDecrypter
if (response.StatusCode != HttpStatusCode.PartialContent)
throw new WebException($"Server at {Uri.Host} responded with unexpected status code: {response.StatusCode}.");
if (response.Headers.GetValues("Accept-Ranges").FirstOrDefault(r => r.EqualsInsensitive("bytes")) is null)
throw new WebException($"Server at {Uri.Host} does not support Http ranges");
//Content length is the length of the range request, and it is only equal
//to the complete file length if requesting Range: bytes=0-
if (WritePosition == 0)

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>6.6.1.1</Version>
<Version>6.6.2.1</Version>
</PropertyGroup>
<ItemGroup>