Skip to content

Commit

Permalink
fixed small keep alive bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 11, 2012
1 parent a08e16b commit a52ba18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojo/UserAgent.pm
Expand Up @@ -403,7 +403,8 @@ sub _remove {
}

# Keep connection alive
$self->_cache(join(':', $self->transactor->endpoint($tx)), $id);
$self->_cache(join(':', $self->transactor->endpoint($tx)), $id)
unless $tx->req->method eq 'CONNECT' && ($tx->res->code || '') eq '200';
}

sub _redirect {
Expand Down

0 comments on commit a52ba18

Please sign in to comment.