8000 [HttpClient] Fixing sending content type based on `CURLOPT_INFILESIZE` · symfony/symfony@d758e67 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit d758e67

Browse files
[HttpClient] Fixing sending content type based on CURLOPT_INFILESIZE
1 parent 32b631c commit d758e67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/CurlHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function request(string $method, string $url, array $options = []): Respo
247247
if (isset($options['normalized_headers']['content-length'][0])) {
248248
$curlopts[\CURLOPT_INFILESIZE] = (int) substr($options['normalized_headers']['content-length'][0], \strlen('Content-Length: '));
249249
} elseif (!isset($options['normalized_headers']['transfer-encoding'])) {
250-
$curlopts[\CURLOPT_INFILESIZE] = -1;
250+
unset($curlopts[\CURLOPT_INFILESIZE]);
251251
}
252252

253253
if ('POST' !== $method) {

0 commit comments

Comments
 (0)
0