Permalink
Browse files

fixed.

  • Loading branch information...
1 parent 93f1a0c commit 6710ff5a335db42f22a591e2024131386e892276 @nekokak committed Feb 2, 2010
Showing with 4 additions and 3 deletions.
  1. +2 −3 lib/Kamui/Plugin/Session/State/Cookie.pm
  2. +2 −0 lib/Kamui/Web/Context.pm
@@ -22,9 +22,8 @@ sub get_session_id {
my $req = $self->{c}->req;
- if ( my $cookie = $req->cookies->{ $self->{cookie_name} } ) {
- my $sid = $cookie->value;
- return $sid if $sid;
+ if ( my $sid = $req->cookies->{ $self->{cookie_name} } ) {
+ return $sid;
}
return;
@@ -213,6 +213,8 @@ sub uri_with {
}
};
+ $self->app->load_class('URI::QueryParam');
+
my $uri = $self->req->uri->clone;
$uri->query_form( {
%{ $uri->query_form_hash },

0 comments on commit 6710ff5

Please sign in to comment.