Skip to content

Commit

Permalink
Merge pull request #76 from rafelangelo/issues-75
Browse files Browse the repository at this point in the history
Fix "0" Body Issue
  • Loading branch information
wolfy-j authored Aug 14, 2020
2 parents c522eec + 7b4a771 commit a7373de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SocketRelay.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function receiveSync(?int &$flags = null): ?string
}
}

return $result ?: null;
return ($result !== '') ? $result : null;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/StreamRelay.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function receiveSync(?int &$flags = null): ?string
}
}

return $result ?: null;
return ($result !== '') ? $result : null;
}

/**
Expand Down

0 comments on commit a7373de

Please sign in to comment.