Author: markt
Date: Sun Feb 14 21:20:29 2016
New Revision: 1730409

URL: http://svn.apache.org/viewvc?rev=1730409&view=rev
Log:
addValue is much faster than setValue and at this point we know there are no 
other Date headers.

Modified:
    tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java

Modified: tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java?rev=1730409&r1=1730408&r2=1730409&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java 
(original)
+++ tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java Sun Feb 
14 21:20:29 2016
@@ -515,7 +515,7 @@ public class Http2UpgradeHandler extends
 
         // Add date header unless the application has already set one
         if (headers.getValue("date") == null) {
-            
headers.setValue("date").setString(FastHttpDateFormat.getCurrentDate());
+            
headers.addValue("date").setString(FastHttpDateFormat.getCurrentDate());
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to