mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
Seek to origin of MemoryStream before use (#1918)
This commit is contained in:
parent
685b63c41f
commit
a8f55bc10d
@ -274,6 +274,7 @@ namespace Bit.Admin.Controllers
|
||||
var ms = new MemoryStream();
|
||||
ms.Seek(0, SeekOrigin.Begin);
|
||||
await JsonSerializer.SerializeAsync(ms, license, JsonHelpers.Indented);
|
||||
ms.Seek(0, SeekOrigin.Begin);
|
||||
return File(ms, "text/plain", "bitwarden_premium_license.json");
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user