]> granicus.if.org Git - apache/commitdiff
* Also add a possible ETag header to r->headers_out. We need to have it there
authorRuediger Pluem <rpluem@apache.org>
Sun, 27 May 2007 11:26:04 +0000 (11:26 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sun, 27 May 2007 11:26:04 +0000 (11:26 +0000)
  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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@541974 13f79535-47bb-0310-9956-ffa450edef68

server/util_script.c

index 62af577e08093cd484adf300dcc9147c09051438..3822b9b894447c106213c5b9fb20e1e015d5b7aa 100644 (file)
@@ -580,6 +580,9 @@ AP_DECLARE(int) ap_scan_script_header_err_core(request_rec *r, char *buffer,
         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.