Skip to content

Commit

Permalink
Update DownloadServletTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkos authored Feb 21, 2025
1 parent a414fb3 commit 874fad7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void testInlineAssetDownload() throws Exception {
context.requestPathInfo().setExtension("pdf");
downloadServlet.doGet(context.request(), context.response());
assertTrue(context.response().containsHeader("Content-Disposition"));
assertEquals("inline", context.response().getHeader("Content-Disposition"));
assertEquals("inline; filename=\"Download_Test_PDF.pdf\"", context.response().getHeader("Content-Disposition"));
assertTrue(context.response().containsHeader("Content-Security-Policy"));
assertEquals("sandbox", context.response().getHeader("Content-Security-Policy"));
assertEquals(8192, context.response().getBufferSize());
Expand Down

0 comments on commit 874fad7

Please sign in to comment.