don't stream the response at all if it exceeds the max size

This commit is contained in:
Athou
2026-10-13 11:37:05 +02:00
parent f72bd4cc5c
commit 0a8c0e0c7f
2 changed files with 26 additions and 3 deletions

View File

@@ -360,7 +360,8 @@ class HttpGetterTest {
IOException e = Assertions.assertThrows(IOException.class, () -> getter.get(this.feedUrl));
Assertions.assertEquals(
"Response size exceeds the maximum allowed size (10000 bytes)", e.getMessage());
"Response size (100000 bytes) exceeds the maximum allowed size (10000 bytes)",
e.getMessage());
}
@Test