mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-23 09:22:28 +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/Matching
|
@ -44,7 +44,7 @@ public class MatchController : ControllerBase
|
|||
|
||||
// Example POST /match: [UpdateMyPlayerData,["Player":"FireGamer9872"]]
|
||||
|
||||
string bodyString = await new StreamReader(this.Request.Body).ReadToEndAsync();
|
||||
string bodyString = await this.ReadBodyAsync();
|
||||
|
||||
if (bodyString.Length == 0 || bodyString[0] != '[') return this.BadRequest();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue