Skip to content

Commit

Permalink
Merge pull request #3189 from MGatner/content-length
Browse files Browse the repository at this point in the history
Bugfix: Multipart Content-Length
  • Loading branch information
lonnieezell authored Jul 1, 2020
2 parents 91a5742 + 59e97f4 commit 65c9148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/HTTP/CURLRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ protected function applyMethod(string $method, array $curl_options): array
if ($method === 'PUT' || $method === 'POST')
{
// See http://tools.ietf.org/html/rfc7230#section-3.3.2
if (is_null($this->getHeader('content-length')))
if (is_null($this->getHeader('content-length')) && ! isset($this->config['multipart']))
{
$this->setHeader('Content-Length', '0');
}
Expand Down

0 comments on commit 65c9148

Please sign in to comment.