pvillard31 commented on code in PR #10249:
URL: https://github.com/apache/nifi/pull/10249#discussion_r2352680639
##########
nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/JettyServer.java:
##########
@@ -679,13 +673,13 @@ private void addDocsServlets(WebAppContext webAppContext)
{
try {
final File docsDir = getDocsDir();
- final ServletHolder docs = new ServletHolder("docs",
ResourceServlet.class);
+ final ServletHolder docs = new ServletHolder("docs",
DefaultServlet.class);
final Path htmlBaseResource = docsDir.toPath().resolve("html");
docs.setInitParameter("baseResource", htmlBaseResource.toString());
docs.setInitParameter("dirAllowed", "false");
webAppContext.addServlet(docs, "/html/*");
- final ServletHolder restApi = new ServletHolder("rest-api",
ResourceServlet.class);
+ final ServletHolder restApi = new ServletHolder("rest-api",
DefaultServlet.class);
Review Comment:
Can't remember why, reverting.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]