Skip to content

Commit 939e48c

Browse files
committed
Merge pull request #715 from theonlylawislove/master
Pull request for bug 713
2 parents 24ab5fc + 761c657 commit 939e48c

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/ServiceStack.Common/Web/HttpResult.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,7 @@ public void WritePartialTo(IHttpResponse response)
271271
{
272272
using (var fs = FileInfo.OpenRead())
273273
{
274-
if (rangeEnd != FileInfo.Length - 1)
275-
{
276-
fs.WritePartialTo(outputStream, rangeStart, rangeEnd);
277-
}
278-
else
279-
{
280-
fs.WriteTo(outputStream);
281-
outputStream.Flush();
282-
}
274+
fs.WritePartialTo(outputStream, rangeStart, rangeEnd);
283275
}
284276
}
285277
else if (ResponseStream != null)

0 commit comments

Comments
 (0)