Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hallatore committed Jul 6, 2016
1 parent 88e2d0f commit 2531828
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Netling.Core/Performance/HttpWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ public int Get()
{
InitClient();
var stream = HttpHelper.GetStream(_client, _uri);

stream.Write(_request, 0, _request.Length);
stream.Flush();
return GetLength();
}

private int GetLength()
{
const int bufferSize = 4096;
var buffer = new byte[bufferSize];
var length = 0;
Expand Down

0 comments on commit 2531828

Please sign in to comment.