Skip to content

Commit

Permalink
Simplest possible fix for null inputStream when ContentLength is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
wrall authored and mconnew committed Nov 9, 2024
1 parent 0543c7b commit c41db59
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@ private async Task<Message> DecodeBufferedMessageAsync(ArraySegment<byte> buffer
}
finally
{
inputStream.Dispose();
if (inputStream != null)
{
inputStream.Dispose();
}
}
}

Expand Down

0 comments on commit c41db59

Please sign in to comment.