We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4c39668 + 04f8be1 commit 9f8468aCopy full SHA for 9f8468a
1 file changed
system/HTTP/CURLRequest.php
@@ -763,6 +763,7 @@ protected function setCURLOptions(array $curl_options = [], array $config = [])
763
$json = json_encode($config['json']);
764
$this->setBody($json);
765
$this->setHeader('Content-Type', 'application/json');
766
+ $this->setHeader('Content-Length', (string) strlen($json));
767
}
768
769
// version
0 commit comments