diff --git a/source/net/yacy/http/YaCyDefaultServlet.java b/source/net/yacy/http/YaCyDefaultServlet.java index 24a9415e7..acdc359e2 100644 --- a/source/net/yacy/http/YaCyDefaultServlet.java +++ b/source/net/yacy/http/YaCyDefaultServlet.java @@ -124,7 +124,7 @@ import org.eclipse.jetty.util.resource.ResourceFactory; */ public class YaCyDefaultServlet extends HttpServlet implements ResourceFactory { - private static final long serialVersionUID = 4930458713846881193L; + private static final long serialVersionUID = 4900000000000001110L; private ServletContext _servletContext; private boolean _acceptRanges = true; private boolean _dirAllowed = true; @@ -985,6 +985,7 @@ public class YaCyDefaultServlet extends HttpServlet implements ResourceFactory { OutputStream out = response.getOutputStream(); + // remove virtual host "currentyacypeer" int off = 0; // starting offset int x = buffer.indexOf("/currentyacypeer/".getBytes(), off); while (x >= 0) { @@ -995,6 +996,7 @@ public class YaCyDefaultServlet extends HttpServlet implements ResourceFactory { x = buffer.indexOf("/currentyacypeer/".getBytes(), off); } + // check and handle SSI (ServerSideIncludes) off = 0; int p = buffer.indexOf("