Removed some dead code

pull/240/head
luccioman 6 years ago
parent db7ad76366
commit b5eabb626f

@ -127,11 +127,6 @@ public class UrlProxyServlet extends HttpServlet implements Servlet {
proxyurl = new DigestURL(URLDecoder.decode(strUrl, StandardCharsets.UTF_8.name())); proxyurl = new DigestURL(URLDecoder.decode(strUrl, StandardCharsets.UTF_8.name()));
} }
if (proxyurl == null) {
response.sendError(HttpServletResponse.SC_NOT_FOUND,"url parameter missing");
return;
}
String hostwithport = proxyurl.getHost(); String hostwithport = proxyurl.getHost();
if (proxyurl.getPort() != -1) { if (proxyurl.getPort() != -1) {
hostwithport += ":" + proxyurl.getPort(); hostwithport += ":" + proxyurl.getPort();

Loading…
Cancel
Save