Skip to content

Commit

Permalink
no need for a default value
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 11, 2016
1 parent c697b50 commit 355b925
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Daemon.pm
Expand Up @@ -209,7 +209,7 @@ sub _read {

# Last keep-alive request or corrupted connection
$tx->res->headers->connection('close')
if (($c->{requests} || 0) >= $self->max_requests) || $tx->req->error;
if $c->{requests} >= $self->max_requests || $tx->req->error;

# Finish or start writing
if ($tx->is_finished) { $self->_finish($id) }
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/UserAgent.pm
Expand Up @@ -324,7 +324,7 @@ sub _write {
$self->_finish($id) if $tx->is_finished;

# Continue writing
return unless $tx->is_writing;
return if $chunk eq '';
weaken $self;
$stream->write('' => sub { $self->_write($id) });
}
Expand Down

0 comments on commit 355b925

Please sign in to comment.