1
0
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:
Matt Gibson 2022-03-16 11:38:13 -04:00 committed by GitHub
parent 685b63c41f
commit a8f55bc10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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