Removed warning from param handling. Fixed less verbose headers in tests, IIS FastCGI...
Christian Hansen [Fri, 20 May 2005 10:53:14 +0000 (10:53 +0000)]
lib/Catalyst/Request.pm
t/lib/Catalyst/Plugin/Test/Headers.pm

index e61ea65..41f8d8d 100644 (file)
@@ -194,6 +194,8 @@ sub param {
     if ( @_ > 1 ) {
 
         while ( my ( $field, $value ) = splice( @_, 0, 2 ) ) {
+        
+            next unless defined $field;
 
             if ( exists $self->parameters->{$field} ) {
                 for ( $self->parameters->{$field} ) {
index 0cb4794..c5a89cb 100644 (file)
@@ -11,14 +11,14 @@ sub prepare {
     $c->response->header( 'X-Catalyst-Debug' => $c->debug ? 1 : 0 );
     
     {
-        my @components = sort keys %{ $c->components };
-        $c->response->headers->push_header( 'X-Catalyst-Components' => [ @components ] );
+        my $components = join( ', ', sort keys %{ $c->components } );
+        $c->response->header( 'X-Catalyst-Components' => $components );
     }
 
     {
         no strict 'refs';
-        my @plugins = sort grep { m/^Catalyst::Plugin/ } @{ $class . '::ISA' };
-        $c->response->headers->push_header( 'X-Catalyst-Plugins' => [ @plugins ] );
+        my $plugins = join( ', ', sort grep { m/^Catalyst::Plugin/ } @{ $class . '::ISA' } );
+        $c->response->header( 'X-Catalyst-Plugins' => $plugins );
     }
 
     return $c;