X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FRequest.pm;h=46e0df61bba40d9c1e9f700f1eaa9c6f1a1aeccb;hb=3e22baa5ca02859b9180a0ec17d49fd204f5ba37;hp=0df44fdce225f6caf356252aae220ac262342040;hpb=fc42a730483499b9ee26ac068ba1c40794b05ebe;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index 0df44fd..46e0df6 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -6,6 +6,7 @@ use base 'Class::Accessor::Fast'; use IO::Socket qw[AF_INET inet_aton]; use Carp; use utf8; +use URI::QueryParam; __PACKAGE__->mk_accessors( qw/action address arguments cookies headers match method @@ -67,7 +68,7 @@ Catalyst::Request - provides information about the current client request $req->user; $req->user_agent; -See also L. +See also L, L. =head1 DESCRIPTION @@ -508,12 +509,12 @@ sub uri_with { if( $isa_ref and $isa_ref ne 'ARRAY' ) { croak( "Non-array reference ($isa_ref) passed to uri_with()" ); } - utf8::encode( $_ ) for $isa_ref ? @$value : $value ; + utf8::encode( $_ ) for $isa_ref ? @$value : $value; }; my $uri = $self->uri->clone; $uri->query_form( { - $uri->query_form, + %{ $uri->query_form_hash }, %$args } ); return $uri;