From e633189b48fec05b88b51528f283a1f811566907 Mon Sep 17 00:00:00 2001
From: Greg Wilkins
Date: Thu, 23 Apr 2015 11:07:30 +1000
Subject: [PATCH] 457788 Powered By in o.e.j.util.Jetty
---
.../org/eclipse/jetty/http/spi/HttpSpiContextHandler.java | 3 ++-
.../src/main/java/org/eclipse/jetty/server/Response.java | 4 +++-
.../org/eclipse/jetty/server/handler/DefaultHandler.java | 3 ++-
.../java/org/eclipse/jetty/server/handler/ErrorHandler.java | 3 ++-
jetty-util/src/main/java/org/eclipse/jetty/util/Jetty.java | 6 ++++++
5 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/jetty-http-spi/src/main/java/org/eclipse/jetty/http/spi/HttpSpiContextHandler.java b/jetty-http-spi/src/main/java/org/eclipse/jetty/http/spi/HttpSpiContextHandler.java
index 57a5b6479f8..03dc87cc6ec 100644
--- a/jetty-http-spi/src/main/java/org/eclipse/jetty/http/spi/HttpSpiContextHandler.java
+++ b/jetty-http-spi/src/main/java/org/eclipse/jetty/http/spi/HttpSpiContextHandler.java
@@ -29,6 +29,7 @@ import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.handler.ContextHandler;
+import org.eclipse.jetty.util.Jetty;
import com.sun.net.httpserver.Authenticator;
import com.sun.net.httpserver.Authenticator.Result;
@@ -98,7 +99,7 @@ public class HttpSpiContextHandler extends ContextHandler
ex.printStackTrace(writer);
writer.println("");
- writer.println("Powered by jetty://
");
+ writer.println(""+Jetty.POWERED_BY_HTML+"
");
writer.close();
}
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java b/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java
index bd5b33ca3d9..c0a446b153e 100644
--- a/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java
+++ b/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java
@@ -53,6 +53,7 @@ import org.eclipse.jetty.http.PreEncodedHttpField;
import org.eclipse.jetty.io.RuntimeIOException;
import org.eclipse.jetty.server.handler.ErrorHandler;
import org.eclipse.jetty.util.ByteArrayISO8859Writer;
+import org.eclipse.jetty.util.Jetty;
import org.eclipse.jetty.util.QuotedStringTokenizer;
import org.eclipse.jetty.util.StringUtil;
import org.eclipse.jetty.util.URIUtil;
@@ -603,7 +604,8 @@ public class Response implements HttpServletResponse
writer.write(". Reason:\n ");
writer.write(message);
writer.write("
");
- writer.write("
\n
Powered by Jetty://");
+ writer.write("\n
");
+ writer.write(Jetty.POWERED_BY_HTML);
writer.write("\n