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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy