-
Notifications
You must be signed in to change notification settings - Fork 72
Conversation
@jbagga, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is back in the StaticFiles repo, you can now update StaticFiles to use it in the same PR.
using Microsoft.Extensions.Primitives; | ||
using Microsoft.Net.Http.Headers; | ||
|
||
namespace Microsoft.AspNetCore.RangeHelper.Internal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Microsoft.AspNetCore.Internal
@Tratcher Updated |
// The spec allows for multiple ranges but we choose not to support them because the client may request | ||
// very strange ranges (e.g. each byte separately, overlapping ranges, etc.) that could negatively | ||
// impact the server. Ignore the header and serve the response normally. | ||
_logger.LogMultipleFileRanges(rawRangeHeader.ToString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The shared source does not have a logger. Should I add it? @Tratcher
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, because then you'll have to add LogMultipleFileRanges (which you should now remove).
Addresses aspnet/Mvc#3702
cc @Tratcher @pranavkm @Eilon