[Rt-commit] r2486 - in HTTP-Server-Simple: . lib/HTTP/Server/Simple

jesse at bestpractical.com jesse at bestpractical.com
Mon Mar 21 11:48:23 EST 2005


Author: jesse
Date: Mon Mar 21 11:48:23 2005
New Revision: 2486

Modified:
   HTTP-Server-Simple/   (props changed)
   HTTP-Server-Simple/lib/HTTP/Server/Simple/CGI.pm
Log:
 r9499 at hualien:  jesse | 2005-03-22 00:09:16 +0800
 * Fixed CGI cookie handling
 


Modified: HTTP-Server-Simple/lib/HTTP/Server/Simple/CGI.pm
==============================================================================
--- HTTP-Server-Simple/lib/HTTP/Server/Simple/CGI.pm	(original)
+++ HTTP-Server-Simple/lib/HTTP/Server/Simple/CGI.pm	Mon Mar 21 11:48:23 2005
@@ -98,7 +98,7 @@
 	$tag =~ s/^COOKIES$/COOKIE/;
 	$tag =~ s/-/_/g;
 	$tag = "HTTP_" . $tag
-	    unless $tag =~ m/^CONTENT_(?:LENGTH|TYPE)$/;
+	    unless $tag =~ m/^(?:CONTENT_(?:LENGTH|TYPE)|COOKIE)$/;
 
 	if ( exists $ENV{$tag} ) {
 	    $ENV{$tag} .= "; $value";


More information about the Rt-commit mailing list