Skip to content

Commit 0d7717b

Browse files
bug #58875 [HttpClient] Removed body size limit (Carl Julian Sauter)
This PR was merged into the 5.4 branch. Discussion ---------- [HttpClient] Removed body size limit | Q | A | ------------- | --- | Branch | 5.4 | Bug fix | yes | New feature | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | Fixes Body size limit of ~10 MB in AmpHttpClient | License | MIT See #58873 <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the latest branch. - For new features, provide some code snippets to help understand usage. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 122a480 Removed body size limit
2 parents 2b1cb9d + 122a480 commit 0d7717b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/HttpClient/AmpHttpClient.php

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public function request(string $method, string $url, array $options = []): Respo
118118
}
119119

120120
$request = new Request(implode('', $url), $method);
121+
$request->setBodySizeLimit(0);
121122

122123
if ($options['http_version']) {
123124
switch ((float) $options['http_version']) {

0 commit comments

Comments
 (0)