Skip to content

Commit

Permalink
Merge pull request #1281 from Ortus-Solutions/dev/undertow-2011
Browse files Browse the repository at this point in the history
BugFix: UNDERTOW-2011 update getName method in PathResource class
  • Loading branch information
fl4via committed Feb 6, 2022
2 parents afb3e12 + 05cb1e2 commit ad3c5db
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -78,7 +78,10 @@ public ETag getETag() {

@Override
public String getName() {
return file.getFileName().toString();
if( file.getFileName() != null ) {
return file.getFileName().toString();
}
return file.toString();
}

@Override
Expand Down

0 comments on commit ad3c5db

Please sign in to comment.