Skip to content

Commit 078508c

Browse files
author
Jamie Hannaford
authored
Merge pull request #5 from haphan/client-body
[rfr] Fix bug body is omitted when memory_limit is negative
2 parents 7830cb6 + 98c8808 commit 078508c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/Error/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function str(MessageInterface $message): string
9797
$msg .= "\r\n{$name}: " . implode(', ', $values);
9898
}
9999

100-
if ($message->getBody()->getSize() < ini_get('memory_limit')) {
100+
if (ini_get('memory_limit') < 0 || $message->getBody()->getSize() < ini_get('memory_limit')) {
101101
$msg .= "\r\n\r\n" . $message->getBody();
102102
}
103103

0 commit comments

Comments
 (0)