mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-22 09:12:26 +00:00
Properly dispose of StreamReaders
This commit is contained in:
parent
75a5e70635
commit
14fa5e9328
5 changed files with 17 additions and 7 deletions
ProjectLighthouse.Servers.GameServer/Controllers
|
@ -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 "))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue