diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/DebugHandler.java b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/DebugHandler.java index 9053c4479f1..052b75377ae 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/DebugHandler.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/DebugHandler.java @@ -58,7 +58,7 @@ public class DebugHandler extends HandlerWrapper boolean retry=false; String name=(String)request.getAttribute("org.mortbay.jetty.thread.name"); if (name==null) - name=old_name+"://"+baseRequest.getHeader("Host") +baseRequest.getUri(); + name=old_name+":"+baseRequest.getScheme()+"://"+baseRequest.getLocalAddr()+":"+baseRequest.getLocalPort()+baseRequest.getUri(); else retry=true;