Closed vanillajonathan closed 6 years ago
I don't see why. It's doing more work than the IsXXX properties. https://github.com/aspnet/StaticFiles/blob/826e89a2d1b325485819040ff41b9948afc91e06/src/Microsoft.AspNetCore.StaticFiles/StaticFileContext.cs#L111-L117
It does not really do any action, it just checks conditions.
It checks if something is valid by checking if the HTTP request method is a GET or a HEAD.
This issue was moved to aspnet/Home#2443
The
ValidateMethod
in theStaticFileContext
should probably be namedIsValidMethod
.