Skip to content

Commit 7b5abcb

Browse files
committed
Rename _requires_body -> _allows_empty_body
The logic was backwards in relation to the name
1 parent 92c3ccd commit 7b5abcb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Thunderhorse/Response.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ sub update ($self, $scope, $receive, $send)
2121
$self->{scope} = $scope;
2222
}
2323

24-
sub _requires_body ($self, $status)
24+
sub _allows_empty_body ($self, $status)
2525
{
2626
# HTTP protocol hardcodes - these statuses can have empty bodies
2727
return $status < 200
@@ -33,7 +33,7 @@ sub is_ready ($self)
3333
{
3434
return true if $self->has_body_source;
3535

36-
return $self->_requires_body($self->status)
36+
return $self->_allows_empty_body($self->status)
3737
if $self->has_status;
3838

3939
return false;

0 commit comments

Comments
 (0)