]> granicus.if.org Git - apache/commitdiff
Log the value of Status header lines in script responses rather than
authorChris Darroch <chrisd@apache.org>
Tue, 17 Jul 2012 15:26:27 +0000 (15:26 +0000)
committerChris Darroch <chrisd@apache.org>
Tue, 17 Jul 2012 15:26:27 +0000 (15:26 +0000)
than just the fixed header name of "Status".

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

CHANGES
server/util_script.c

diff --git a/CHANGES b/CHANGES
index 2c87537ca0f8dd6ab63e3cb0127a31ba596d3417..9edd56a631bf465f4d2e3c66d4326db81681cf7c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) core: Log value of Status header line in script responses rather
+     than the fixed header name.  [Chris Darroch]
+
   *) mpm_event: Don't count connections in lingering close state when
      calculating how many additional connections may be accepted.
      [Stefan Fritsch]
index f9f3e098039e78bc177769a6afdcc1223dda45f2..703d16009472b34d73e0b36e64c9c9d63380dfa9 100644 (file)
@@ -592,11 +592,11 @@ AP_DECLARE(int) ap_scan_script_header_err_core_ex(request_rec *r, char *buffer,
             if (!ap_is_HTTP_VALID_RESPONSE(cgi_status))
                 ap_log_rerror(SCRIPT_LOG_MARK, APLOG_ERR|APLOG_TOCLIENT, 0, r,
                               "Invalid status line from script '%s': %s",
-                              apr_filepath_name_get(r->filename), w);
+                              apr_filepath_name_get(r->filename), l);
             else
                 ap_log_rerror(SCRIPT_LOG_MARK, APLOG_TRACE1, 0, r,
                               "Status line from script '%s': %s",
-                              apr_filepath_name_get(r->filename), w);
+                              apr_filepath_name_get(r->filename), l);
             r->status_line = apr_pstrdup(r->pool, l);
         }
         else if (!strcasecmp(w, "Location")) {