From 4f385892480603fc1a5df2234176c18895d503a8 Mon Sep 17 00:00:00 2001 From: Benjamin Prud'homme <139664105+bgprudhomme@users.noreply.github.com> Date: Sat, 3 Aug 2024 17:55:35 -0400 Subject: [PATCH] Update HttpSourceTest.java --- .../illinois/library/cantaloupe/source/HttpSourceTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/test/java/edu/illinois/library/cantaloupe/source/HttpSourceTest.java b/src/test/java/edu/illinois/library/cantaloupe/source/HttpSourceTest.java index 13f43a862..85381b3c5 100644 --- a/src/test/java/edu/illinois/library/cantaloupe/source/HttpSourceTest.java +++ b/src/test/java/edu/illinois/library/cantaloupe/source/HttpSourceTest.java @@ -398,11 +398,9 @@ void testGetFormatIteratorNext() throws Exception { @Override public boolean handle(Request request, org.eclipse.jetty.server.Response response, - Callback callback) { + Callback callback) throws Exception { response.getHeaders().put("Accept-Ranges", "bytes"); - try { - Content.Sink.copyFromPath(TestUtil.getImage(fixture), response, callback); - } + Content.Sink.copyFromPath(TestUtil.getImage(fixture), response, callback); return true; } });