aspnet / StaticFiles

[Archived] Middleware for handling requests for file system resources including files and directories. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
114 stars 72 forks source link

Return a single range instead of a collection from ParseRange #196

Closed jbagga closed 7 years ago

jbagga commented 7 years ago

ParseRange should return a single RangeItemHeaderValue (multiple are not supported) instead of ICollection<RangeItemHeaderValue> As a follow up, the caller code in StaticFileContext and FileResultExecutorBase in MVC should be modified.

cc @Tratcher

Tratcher commented 7 years ago

And you can probably combine it with NormalizeRanges.