|
|
@ -161,7 +161,7 @@ public class YaCyProxyServlet extends HttpServlet implements Servlet {
|
|
|
|
if (location.startsWith("http")) {
|
|
|
|
if (location.startsWith("http")) {
|
|
|
|
location = request.getServletPath() + "?url=" + location;
|
|
|
|
location = request.getServletPath() + "?url=" + location;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
location = request.getServletPath() + "?url=http://" + hostwithport + "/" + location;
|
|
|
|
location = request.getServletPath() + "?url=" + proxyurl.getProtocol() + "://" + hostwithport + "/" + location;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
response.addHeader(HeaderFramework.LOCATION, location);
|
|
|
|
response.addHeader(HeaderFramework.LOCATION, location);
|
|
|
|
}
|
|
|
|
}
|
|
|
|