Skip to content

Commit e76ad57

Browse files
committed
Merge remote-tracking branch 'origin/master' into staging
2 parents 8947c86 + 1fdd1d4 commit e76ad57

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

RuriLib.Http/HttpResponseBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using RuriLib.Http.Helpers;
1+
using RuriLib.Http.Helpers;
22
using RuriLib.Http.Models;
33
using System;
44
using System.Collections.Generic;
@@ -500,6 +500,7 @@ private Stream GetZipStream(Stream stream)
500500
"gzip" => new GZipStream(stream, CompressionMode.Decompress, false),
501501
"deflate" => new DeflateStream(stream, CompressionMode.Decompress, false),
502502
"br" => new BrotliStream(stream, CompressionMode.Decompress, false),
503+
"zstd" => new ZstdSharp.DecompressionStream(stream, leaveOpen: false),
503504
"utf-8" => stream,
504505
_ => throw new InvalidOperationException($"'{contentEncoding}' not supported encoding format"),
505506
};

RuriLib.Http/HttpResponseMessageBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.IO;
33
using System.Net;
44
using System.Text;
@@ -536,6 +536,7 @@ private Stream GetZipStream(Stream stream)
536536
"gzip" => new GZipStream(stream, CompressionMode.Decompress, false),
537537
"deflate" => new DeflateStream(stream, CompressionMode.Decompress, false),
538538
"br" => new BrotliStream(stream, CompressionMode.Decompress, false),
539+
"zstd" => new ZstdSharp.DecompressionStream(stream, leaveOpen: false),
539540
_ => throw new InvalidOperationException($"'{contentEncoding}' not supported encoding format"),
540541
};
541542
}

RuriLib.Http/RuriLib.Http.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="System.IO.Pipelines" Version="8.0.0" />
17+
<PackageReference Include="ZstdSharp.Port" Version="0.8.4" />
1718
</ItemGroup>
1819

1920
<ItemGroup>

openbullet2-web-client/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)