Better i18n in request target processing
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc8.0.x/trunk@1830261 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/java/org/apache/coyote/http11/AbstractHttp11Processor.java b/java/org/apache/coyote/http11/AbstractHttp11Processor.java
index 5995df2..6f98fd5 100644
--- a/java/org/apache/coyote/http11/AbstractHttp11Processor.java
+++ b/java/org/apache/coyote/http11/AbstractHttp11Processor.java
@@ -1382,8 +1382,7 @@
response.setStatus(400);
setErrorState(ErrorState.CLOSE_CLEAN, null);
if (getLog().isDebugEnabled()) {
- getLog().debug(sm.getString("http11processor.request.prepare")+
- " host header missing");
+ getLog().debug(sm.getString("http11processor.request.noHostHeader"));
}
}
diff --git a/java/org/apache/coyote/http11/LocalStrings.properties b/java/org/apache/coyote/http11/LocalStrings.properties
index d510d81..b4a0e83 100644
--- a/java/org/apache/coyote/http11/LocalStrings.properties
+++ b/java/org/apache/coyote/http11/LocalStrings.properties
@@ -18,6 +18,7 @@
http11processor.neverused=This method should never be used
http11processor.request.inconsistentHosts=The host specified in the request line is not consistent with the host header
http11processor.request.multipleHosts=The request contained multiple host headers
+http11processor.request.noHostHeader=The HTTP/1.1 request did not provide a host header
http11processor.request.prepare=Error preparing request
http11processor.request.process=Error processing request
http11processor.request.finish=Error finishing request