Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CurlDownloadStrategy: Ignore invalid
last-modified
header values
- Some download locations return a non-standard formatting of date string for the `Last-Modified` header. This causes `Time.parse` to blow up. The user sees `error: argument out of range`. - In this commit we handle the error and return nil, which `filter_map` (equivalent to `.map.compact`) gets rid of and then `time.last` is as normal. - Fixes https://github.com/Homebrew/brew/issues/ 17556.
- Loading branch information