mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +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();
|
var ms = new MemoryStream();
|
||||||
ms.Seek(0, SeekOrigin.Begin);
|
ms.Seek(0, SeekOrigin.Begin);
|
||||||
await JsonSerializer.SerializeAsync(ms, license, JsonHelpers.Indented);
|
await JsonSerializer.SerializeAsync(ms, license, JsonHelpers.Indented);
|
||||||
|
ms.Seek(0, SeekOrigin.Begin);
|
||||||
return File(ms, "text/plain", "bitwarden_premium_license.json");
|
return File(ms, "text/plain", "bitwarden_premium_license.json");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user