Received: (qmail 24693 invoked by uid 501); 25 Jan 2002 21:37:22 -0000 Message-Id: <20020125213722.24692.qmail@apache.org> Date: 25 Jan 2002 21:37:22 -0000 From: Akira Noda Reply-To: akira-pri@dino.co.jp To: submit@bugz.apache.org Subject: Can't use Cookie over Apache Proxy module X-Send-Pr-Version: 3.110 >Number: 9595 >Category: mod_proxy >Synopsis: Can't use Cookie over Apache Proxy module >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Jan 25 13:40:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: akira-pri@dino.co.jp >Release: 1.3.23 >Organization: apache >Environment: FreeBSD anko.ssr 4.4-RELEASE FreeBSD 4.4-RELEASE #2: Fri Jan 25 09:48:27 JST 2002 adminakira@anko.ssr:/usr/src/sys/compile/akira i386 gcc version 2.95.3 20010315 (release) [FreeBSD] >Description: Sorry I'm very poor in English and less sleep with this problem.(^^; if remote Server such as mail.yahoo.co.jp sends HTTP1.0 200 OK Content-Type: text/html Set-Cookie: hoge Set-Cookie: moge Set-Cookie: baa <...body......> local macine recv from Apache proxy module Content-Type: text/html Set-Cookie: baa <....body....> >How-To-Repeat: Login to http://www.egroups.co.jp http://mail.yahoo.co.jp >Fix: I rewrite fllowing file It seems runs well file:src/module/proxy/proxy_http.c lile fllowing 530c530,541 < ap_overlap_tables(r->headers_out, resp_hdrs, AP_OVERLAP_TABLES_SET); --- > /*ap_overlap_tables(r->headers_out, resp_hdrs, AP_OVERLAP_TABLES_SET);*/ > /* This is workaroud for Cookies (By Akira Noda http://rogiken.org/daemon/ */ > > reqhdrs_arr = ap_table_elts(resp_hdrs); > reqhdrs_elts = (table_entry *) reqhdrs_arr->elts; > > for (i = 0; i < reqhdrs_arr->nelts; i++) { > ap_table_addn(r->headers_out, > reqhdrs_elts[i].key ,reqhdrs_elts[i].val); > } > /* end of fix by akira noda*/ > >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]