Properly dispose of StreamReaders

This commit is contained in:
Slendy 2023-02-11 19:08:44 -06:00
parent 75a5e70635
commit 14fa5e9328
No known key found for this signature in database
GPG key ID: 7288D68361B91428
5 changed files with 17 additions and 7 deletions
ProjectLighthouse.Servers.GameServer/Controllers

View file

@ -81,7 +81,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.";
{
GameToken token = this.GetToken();
string message = await new StreamReader(this.Request.Body).ReadToEndAsync();
string message = await this.ReadBodyAsync();
if (message.StartsWith("/setemail "))
{