Skip to content

Commit

Permalink
Merge branch 'develop2'
Browse files Browse the repository at this point in the history
  • Loading branch information
yar229 committed Oct 21, 2020
2 parents ae64078 + 4f8a941 commit 39d81e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MailRuCloud/MailRuCloudApi/YaR.Clouds.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<TargetFrameworks>netcoreapp3.0;net48</TargetFrameworks>
<RootNamespace>YaR.Clouds</RootNamespace>
<AssemblyName>YaR.Clouds</AssemblyName>
<AssemblyVersion>1.12.2.1</AssemblyVersion>
<FileVersion>1.12.2.1</FileVersion>
<AssemblyVersion>1.12.2.2</AssemblyVersion>
<FileVersion>1.12.2.2</FileVersion>
<Version>$(AssemblyVersion)</Version>
<LangVersion>8.0</LangVersion>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions WDMRC.Console/WDMRC.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<Copyright>[email protected]</Copyright>
<Description>WebDAV emulator for Cloud.mail.ru</Description>
<PackageId>WebDAVCloudMailRu</PackageId>
<AssemblyVersion>1.12.2.1</AssemblyVersion>
<FileVersion>1.12.2.1</FileVersion>
<AssemblyVersion>1.12.2.2</AssemblyVersion>
<FileVersion>1.12.2.2</FileVersion>
<Version>$(AssemblyVersion)</Version>
<AssemblyName>wdmrc</AssemblyName>
<RootNamespace>YaR.Clouds.Console</RootNamespace>
Expand Down
2 changes: 1 addition & 1 deletion WebDavMailRuCloudStore/CustomHandlers/GetAndHeadHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public async Task<bool> HandleRequestAsync(IHttpContext httpContext, IStore stor
{
long start = range.Start ?? 0;
long end = range.End ?? start + length - 1;
length = end - start + 1; //var end = Math.Min(range.End ?? long.MaxValue, length - 1);
//length = end - start + 1; //var end = Math.Min(range.End ?? long.MaxValue, length - 1);

// Write the range
response.SetHeaderValue("Content-Range", $"bytes {start}-{end} / {stream.Length}");
Expand Down

0 comments on commit 39d81e2

Please sign in to comment.