DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25507>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25507

mod_headers fails to set header





------- Additional Comments From [EMAIL PROTECTED]  2003-12-15 14:54 -------
I applied this patch:
Index: modules/http/http_protocol.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/http/http_protocol.c,v
retrieving revision 1.463.2.6
diff -u -r1.463.2.6 http_protocol.c
--- modules/http/http_protocol.c        20 Nov 2003 19:52:42 -0000      1.463.2.
6
+++ modules/http/http_protocol.c        15 Dec 2003 14:51:29 -0000
@@ -1290,11 +1290,9 @@

     /* keep the set-by-proxy server header, otherwise
      * generate a new server header */
-    if (r->proxyreq != PROXYREQ_NONE) {
-        server = apr_table_get(r->headers_out, "Server");
-        if (server) {
-            form_header_field(&h, "Server", server);
-        }
+    server = apr_table_get(r->headers_out, "Server");
+    if (server) {
+        form_header_field(&h, "Server", server);
     }
     else {
         form_header_field(&h, "Server", ap_get_server_version());

and rebuilt

added this to conf file:
<location />
header set Server gobble
</location>

and got this in response to HTTP/1.1 request:

HTTP/1.1 200 OK
Date: Mon, 15 Dec 2003 09:52:23 GMT
Server: gobble

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to