From: Ruediger Pluem Date: Sun, 27 May 2007 11:26:04 +0000 (+0000) Subject: * Also add a possible ETag header to r->headers_out. We need to have it there X-Git-Tag: 2.3.0~1793 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd03736495bc010d063d5e3607063e0b5038dacd;p=thirdparty%2Fapache%2Fhttpd.git * 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@541974 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_script.c b/server/util_script.c index 62af577e080..3822b9b8944 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -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.