You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Patrik Hornik <pa...@netdive.com> on 2001/03/26 13:34:30 UTC

mod_proxy/7461: The response headers are not logged when proxy serves the document.

>Number:         7461
>Category:       mod_proxy
>Synopsis:       The response headers are not logged when proxy serves the document.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Mar 26 03:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     patrik@netdive.com
>Release:        1.3.14
>Organization:
apache
>Environment:
Linux kernel 2.4.0
>Description:
The response headers are not logged when mod_proxy serves the document. This is because proxy writes them directly to the output and doesnt add them to the request->headers_out table. And mod_log_config parses request->headers_out for {}o log directives..
>How-To-Repeat:
Every document accessed through proxy... :))
>Fix:
Yes, add response headers to request->headers_out table in ap_proxy_send_hdr_line in proxy_util.c:
...
if (!parm->req->assbackwards)
  ap_rvputs(parm->req, key, ": ", value, CRLF, NULL);

// Here comes the fix...
ap_table_add(parm->req->headers_out,key,value);
...
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]