Skip to content
Snippets Groups Projects
Commit ca70dd44 authored by Sebastian Pisula's avatar Sebastian Pisula
Browse files

bugfix(core): Fixing body issue

parent 6a567334
No related branches found
No related tags found
1 merge request!7bugfix(core): Fixing body issue
Pipeline #5310 passed with stages
in 1 minute and 35 seconds
= 1.0.4 - 2020-12-09 =
* Fixed issue with body
= 1.0.3 - 2020-04-10 =
* Increased Curl connection timeout
* Increased Curl connection timeout
= 1.0.2 - 2019-12-06 =
* Fixed issue with headers
......
......@@ -91,7 +91,7 @@ class CurlClient implements HttpClient {
return $len;
}
];
if ( $method !== "GET" ) {
if ( ! empty( $body ) ) {
$options[ \CURLOPT_POSTFIELDS ] = $body;
}
\curl_setopt_array( $this->curlResource, $options );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment