You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(static): implement Last-Modified header for static routes (#2426)
* add last-modified support for static
* add mtime attr to static test fakestat
* update _open_range docstring
* close file handler before raising exception
* fix `resp.last_modified` type
* add tests
* replace `os.fstat` with `os.stat`
* add tests for read error
* remove useless st_mode in fakestat
* handle permission error for os.stat
* add more tests for permission error
* format
* revert "replace `os.fstat` with `os.stat`"
* add test for coverage
* update tests
* fix pep8 warning
* Format with `ruff`
* add docstring for _open_file
* remove PermissionError handler
* add changelog
* fix test
* docs(static): improve documentation of static routes
* fix(static): drop the microsecond part in If-Modified-Since comparison
---------
Co-authored-by: Vytautas Liuolia <[email protected]>
0 commit comments