Skip to content

Commit

Permalink
no need to use blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 11, 2014
1 parent 15e02f7 commit 555108c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/Transaction/HTTP.pm
Expand Up @@ -36,10 +36,10 @@ sub keep_alive {
return undef if $req_conn eq 'close' || $res_conn eq 'close';

# Keep-alive is optional for 1.0
if ($res->version eq '1.0') { return $res_conn eq 'keep-alive' }
if ($req->version eq '1.0') { return $req_conn eq 'keep-alive' }
return $res_conn eq 'keep-alive' if $res->version eq '1.0';
return $req_conn eq 'keep-alive' if $req->version eq '1.0';

# 1.1
# Keep-alive is the default for 1.1
return 1;
}

Expand Down

0 comments on commit 555108c

Please sign in to comment.