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

Pre-Condition Bug for IfUnModifiedSince #166

Closed dougkpowers closed 7 years ago

dougkpowers commented 7 years ago

I believe there is a bug in the ComptueIfModifiedSince() method of the StaticFileContext class. The following line (213) reads: if (ifUnmodifiedSince.HasValue && ifModifiedSince <= now)

but should read: if (ifUnmodifiedSince.HasValue && ifUnmodifiedSince <= now)

Tratcher commented 7 years ago

I think this was already fixed: https://github.com/aspnet/StaticFiles/commit/8487bf0ae53247be8a270c2e204a7e3c46386c23

dougkpowers commented 7 years ago

Thx. I was looking in master rather than dev.