Skip to content

Commit 9745671

Browse files
Upgrade JanePHP and rebuild the classes (#108)
1 parent d022fd7 commit 9745671

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
* Upgrade Jane to from 6.3.3 to v6.3.5, fix an error with very long string / payload
6+
57
## 4.1.0 (2021-02-26)
68

79
* **Specification override** Fix some `timestamp` from integer to mixed string and integer to support old messages

generated/Runtime/Client/Client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ public function executeEndpoint(Endpoint $endpoint, string $fetch = self::FETCH_
6161
$request = $request->withBody($body);
6262
} elseif (\is_resource($body)) {
6363
$request = $request->withBody($this->streamFactory->createStreamFromResource($body));
64-
} elseif (is_file($body)) {
64+
} elseif (\strlen($body) <= 4000 && is_file($body)) {
65+
// more than 4096 chars will trigger an error
6566
$request = $request->withBody($this->streamFactory->createStreamFromFile($body));
6667
} else {
6768
$request = $request->withBody($this->streamFactory->createStream($body));

0 commit comments

Comments
 (0)