Author: markt
Date: Wed May  3 20:42:26 2017
New Revision: 1793711

URL: http://svn.apache.org/viewvc?rev=1793711&view=rev
Log: (empty)

Modified:
    tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java
    tomcat/trunk/webapps/docs/changelog.xml

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=1793711&r1=1793710&r2=1793711&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java 
(original)
+++ tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java Wed May  
3 20:42:26 2017
@@ -601,8 +601,10 @@ class Http2UpgradeHandler extends Abstra
             }
         }
 
-        // Add date header unless the application has already set one
-        if (headers.getValue("date") == null) {
+
+        // Add date header unless it is an informational response or the
+        // application has already set one
+        if (statusCode >= 200 && headers.getValue("date") == null) {
             
headers.addValue("date").setString(FastHttpDateFormat.getCurrentDate());
         }
     }

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1793711&r1=1793710&r2=1793711&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Wed May  3 20:42:26 2017
@@ -122,6 +122,10 @@
         <bug>60970</bug>: Extend the fix for large headers to push requests.
         (markt)
       </fix>
+      <fix>
+        Do not include a <code>Date</code> header in HTTP/2 reponses with 
status
+        codes less than 200. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Jasper">



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to