-
Notifications
You must be signed in to change notification settings - Fork 38.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider empty jar entries as readable
Prior to this commit, resource handling would not serve empty files and return instead HTTP 404 responses. This would only happen for files contained by JARs, but not on the filesystem. This can be tracked to changes done in `AbstractFileResolvingResource` where we avoid serving empty files for directories, see gh-21372. This commit improves the `checkReadable` method to align this behavior between file system and JAR files. Closes gh-28850
- Loading branch information
1 parent
dfd1a31
commit 94e5eb3
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters