mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Provide graceful fallback for non-default NIO file systems
Closes gh-35443
This commit is contained in:
+2
-2
@@ -203,8 +203,8 @@ public class ResourceHttpMessageWriter implements HttpMessageWriter<Resource> {
|
||||
}
|
||||
return zeroCopyHttpOutputMessage.writeWith(file, pos, count);
|
||||
}
|
||||
catch (IOException ex) {
|
||||
// should not happen
|
||||
catch (IOException | UnsupportedOperationException ignore) {
|
||||
// returning null below leads to fallback code path
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user