billbarker 2002/10/02 22:24:06
Modified: http11/src/java/org/apache/coyote/http11
Http11Processor.java
Log:
Send the proper header for HTTP/1.0 Keep-Alives.
If we're going to support it, we should do it right.
Fix for bug #12783
Reported By: [EMAIL PROTECTED]
Submitted By: C Twomey [EMAIL PROTECTED]
Revision Changes Path
1.38 +2 -0
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java
Index: Http11Processor.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- Http11Processor.java 21 Sep 2002 06:15:50 -0000 1.37
+++ Http11Processor.java 3 Oct 2002 05:24:06 -0000 1.38
@@ -895,6 +895,8 @@
if (!keepAlive) {
response.addHeader("Connection", "close");
+ } else if(!http11) {
+ response.addHeader("Connection", "Keep-Alive");
}
// Build the response header
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>