Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit 5c60f82

Browse files
committed
304 for assets must have an empty/missing response
1 parent 1faf6e3 commit 5c60f82

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

jooby-tests/src/test/java/jooby/AssetFeature.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public void jsAsset() throws Exception {
2323
response = Request.Get(uri("/assets/file.js").build())
2424
.addHeader("If-Modified-Since", lastModified).execute().returnResponse();
2525
assertEquals(304, response.getStatusLine().getStatusCode());
26+
assertEquals(null, response.getEntity());
2627
}
2728

2829
@Test
@@ -36,6 +37,7 @@ public void cssAsset() throws Exception {
3637
response = Request.Get(uri("/assets/file.css").build())
3738
.addHeader("If-Modified-Since", lastModified).execute().returnResponse();
3839
assertEquals(304, response.getStatusLine().getStatusCode());
40+
assertEquals(null, response.getEntity());
3941
}
4042

4143
}

0 commit comments

Comments
 (0)