Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  avoid loading the whole request body into memory
  • Loading branch information
Baptouuuu committed Feb 2, 2020
2 parents 8b713ef + da28d60 commit 1615b96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Translator/Request/Psr7Translator.php
Expand Up @@ -11,9 +11,9 @@
ProtocolVersion,
Headers,
Header,
Bridge\Psr7\Stream,
};
use Innmind\Url\Url;
use Innmind\Stream\Readable\Stream;
use Innmind\Immutable\{
Map,
Str,
Expand Down Expand Up @@ -43,7 +43,7 @@ public function __invoke(RequestInterface $request): Request
new Method(\strtoupper($request->getMethod())),
new ProtocolVersion((int) $major, (int) $minor),
$this->translateHeaders($request->getHeaders()),
Stream::ofContent((string) $request->getBody()),
new Stream($request->getBody()),
);
}

Expand Down

0 comments on commit 1615b96

Please sign in to comment.