We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc89ca3 commit ca00864Copy full SHA for ca00864
1 file changed
src/PrefillGravityForms/Controllers/WeAreFrankController.php
@@ -180,7 +180,7 @@ protected function requestEmbedded(string $bsn = ''): array
180
181
protected function getDefaultCurlArgs(): array
182
{
183
- return [
+ $args = [
184
CURLOPT_RETURNTRANSFER => true,
185
CURLOPT_ENCODING => '',
186
CURLOPT_MAXREDIRS => 10,
@@ -189,5 +189,12 @@ protected function getDefaultCurlArgs(): array
189
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
190
CURLOPT_CUSTOMREQUEST => 'POST',
191
];
192
+
193
+ if ($this->settings->useSSLCertificates()) {
194
+ $args[CURLOPT_SSLCERT] = $this->settings->getPublicCertificate();
195
+ $args[CURLOPT_SSLKEY] = $this->settings->getPrivateCertificate();
196
+ }
197
198
+ return $args;
199
}
200
0 commit comments