summaryrefslogtreecommitdiff
path: root/server/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
diff options
context:
space:
mode:
Diffstat (limited to 'server/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php')
-rw-r--r--server/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php b/server/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
index e8d9388..1091899 100644
--- a/server/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
+++ b/server/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
@@ -265,6 +265,9 @@ class CurlFactory implements CurlFactoryInterface
$this->removeHeader('Content-Length', $conf);
}
$body = $request->getBody();
+ if ($body->isSeekable()) {
+ $body->rewind();
+ }
$conf[CURLOPT_READFUNCTION] = function ($ch, $fd, $length) use ($body) {
return $body->read($length);
};