httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject [PATCH] yet another mod_negotiation sub_req copy thing
Date Sat, 12 Apr 1997 10:45:11 GMT
Yet another field that needs to be copied out of subrequests: per_dir_config.

    HotCookies On
    <Files ~ "\.(gif|jpg|jpeg)$">
	HotCookies Off

HotCookies turns on and off cookie generation.  Consider the request
"GET /ad HTTP/1.0" where /ad.gif exists.  During negotiation it will
properly process the <Files> section but the new dir_config isn't
propagated to the main request so when fixups are run it still thinks
that HotCookies is on.

This patch fixes that.

I don't have the time right now to examine all the request fields to see
if there are other things we should be inheriting from the subrequest...
I'm guessing there are.


Index: mod_negotiation.c
RCS file: /hot/repository/apache/src/mod_negotiation.c,v
retrieving revision 1.10
diff -c -3 -r1.10 mod_negotiation.c
*** mod_negotiation.c	1997/04/11 22:40:14	1.10
--- mod_negotiation.c	1997/04/12 09:34:58
*** 1996,2001 ****
--- 1996,2002 ----
      r->content_languages = sub_req->content_languages;
      r->content_language = sub_req->content_language;
      r->finfo = sub_req->finfo;
+     r->per_dir_config = sub_req->per_dir_config;
      /* copy output headers from subrequest, but leave negotiation headers */
      r->notes = overlay_tables(r->pool, sub_req->notes, r->notes);
      r->headers_out = overlay_tables(r->pool, sub_req->headers_out,

View raw message