remove wrong content mod in SSI parser for virtual path /currentyacypeer/

(is handled on start of request handling)
pull/1/head
reger 11 years ago
parent 5606291574
commit cc223b14a4

@ -718,20 +718,8 @@ public abstract class YaCyDefaultServlet extends HttpServlet implements Resource
net.yacy.cora.util.ByteBuffer buffer = new net.yacy.cora.util.ByteBuffer(in);
OutputStream out = response.getOutputStream();
// remove virtual host "currentyacypeer"
int off = 0; // starting offset
int x = buffer.indexOf("/currentyacypeer/".getBytes(), off);
while (x >= 0) {
for (int i = 0; i < 16; i++) {
in[x + i] = 32;
}
off = x + 16;
x = buffer.indexOf("/currentyacypeer/".getBytes(), off);
}
// check and handle SSI (ServerSideIncludes)
off = 0;
int off = 0;
int p = buffer.indexOf("<!--#".getBytes(), off);
int q;
while (p >= 0) {

Loading…
Cancel
Save