Skip to content

Commit 4479457

Browse files
committed
Extended catch
1 parent d43992c commit 4479457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

direct-object-references/src/main/java/de/dominikschadow/javasecurity/DownloadServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
5555
while ((read = is.read(bytes)) != -1) {
5656
os.write(bytes, 0, read);
5757
}
58-
} catch (AccessControlException ex) {
58+
} catch (AccessControlException | IOException ex) {
5959
LOGGER.error(ex.getMessage(), ex);
6060
}
6161
}

0 commit comments

Comments
 (0)