You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2007/05/27 13:26:05 UTC

svn commit: r541974 - /httpd/httpd/trunk/server/util_script.c

Author: rpluem
Date: Sun May 27 04:26:04 2007
New Revision: 541974

URL: http://svn.apache.org/viewvc?view=rev&rev=541974
Log:
* Also add a possible ETag header to r->headers_out. We need to have it there
  for our later call to ap_meets_conditions a few lines above. Having it put
  in the merge table will fail as merge and r->err_headers_out get merged
  AFTER our call to ap_meets_conditions. Besides of this having multiple
  ETag headers (or a merged version of them) does not seem to make sense.

Modified:
    httpd/httpd/trunk/server/util_script.c

Modified: httpd/httpd/trunk/server/util_script.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_script.c?view=diff&rev=541974&r1=541973&r2=541974
==============================================================================
--- httpd/httpd/trunk/server/util_script.c (original)
+++ httpd/httpd/trunk/server/util_script.c Sun May 27 04:26:04 2007
@@ -580,6 +580,9 @@
         else if (!strcasecmp(w, "Transfer-Encoding")) {
             apr_table_set(r->headers_out, w, l);
         }
+        else if (!strcasecmp(w, "ETag")) {
+            apr_table_set(r->headers_out, w, l);
+        }
         /*
          * If the script gave us a Last-Modified header, we can't just
          * pass it on blindly because of restrictions on future values.