Skip to content
Snippets Groups Projects

bugfix(core): Fixing body issue

Merged Krzysztof Dyszczyk requested to merge bugfix/body-issue into master
2 files
+ 5
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
1
@@ -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 );
Loading