Skip to content

Commit 8681fd3

Browse files
Updated request and response stream mode to wb+
1 parent 0102495 commit 8681fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/MessageDecoratorTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function getBody(): StreamInterface
104104
$body = $this->message->getContent(true);
105105
}
106106

107-
return $this->stream = new Stream($body ?? $this->message->getContent());
107+
return $this->stream = new Stream($body ?? $this->message->getContent(), 'wb+');
108108
}
109109

110110
/**

0 commit comments

Comments
 (0)