Skip to content

Commit

Permalink
Removed unnecessary stream seek in SetContent
Browse files Browse the repository at this point in the history
- when running on the Microsoft Owin TestServer this was throwing as their
  resopnse stream is not seekable.
  • Loading branch information
Simon Fenton committed Sep 18, 2014
1 parent b6f568b commit 632b55b
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ private Response GenerateResponse(HttpStatusCode statusCode, string message)
private void SetContent(string content, Stream stream)
{
var contentBytes = Encoding.UTF8.GetBytes(content);
stream.Position = 0;
stream.Write(contentBytes, 0, contentBytes.Length);
stream.Flush();
}
Expand Down

0 comments on commit 632b55b

Please sign in to comment.