We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24ab5fc + 761c657 commit 939e48cCopy full SHA for 939e48c
1 file changed
src/ServiceStack.Common/Web/HttpResult.cs
@@ -271,15 +271,7 @@ public void WritePartialTo(IHttpResponse response)
271
{
272
using (var fs = FileInfo.OpenRead())
273
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
+ fs.WritePartialTo(outputStream, rangeStart, rangeEnd);
283
}
284
285
else if (ResponseStream != null)
0 commit comments