[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    possible bug headers_out and multiple Set-Cookie
From:       Thomas Drillich <drillich () uniserve ! de>
Date:       1999-02-01 18:44:11
[Download RAW message or body]

Hello,

a header with multiple Cookies should look like
----
HTTP/1.1 200 OK
Connection: close
Cache-Control: no-cache
Content-Type: text/html;charset=ISO-8859-1
Set-Cookie: test=01;path=/;expires=Monday, 01-Feb-1999 19:37:14 GMT
Set-Cookie: tb=02;path=/;expires=Monday, 01-Feb-1999 19:37:14 GMT
Set-Cookie: tc=03;path=/;expires=Monday, 01-Feb-1999 19:37:14 GMT
Set-Cookie: td=04;path=/;expires=Monday, 01-Feb-1999 19:37:14 GMT
----

but send_headers handles only simple hashes
like:
	print("Set-Cookie: ",$req->headers_out('Set-Cookie'),"\n");
and not like
	if(ref($req->headers_out('Set-Cookie')) eq 'ARRAY') {
		foreach(@{$req->headers_out('Set-Cookie')}) {
			print("Set-Cookie: $_\n");
		}
	} else {
		print("Set-Cookie: ",$req->headers_out('Set-Cookie'),"\n");
	}



---
mit freundlichem Gruss -- regards
        ,-,
       |  |         Thomas Drillich <drillich@uniserve.de>
    ___|__|            Geschäftsführer
   (___,   )           uniserve Internet & Multimedia GmbH
   (___,   )\          Sophienweg 3
   (___,   ) \         Technologiezentrum (MIT)
    (___,_,)/ \        D-59872 Meschede Germany
        \              fon: +49 291 59100 , fax: +49 291 59102

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic