gleono commented on code in PR #92:
URL:
https://github.com/apache/openwhisk-runtime-dotnet/pull/92#discussion_r1796220713
##########
core/net6.0/proxy/Apache.OpenWhisk.Runtime.Common/Run.cs:
##########
@@ -49,12 +49,13 @@ public async Task HandleRequest(HttpContext httpContext)
try
{
- string body = await new
StreamReader(httpContext.Request.Body).ReadToEndAsync();
+ using StreamReader reader = new(httpContext.Request.Body);
Review Comment:
Let's be good citizens and dispose any managed resources created by the
`StreamReader`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]