Skip to content
This repository was archived by the owner on Nov 27, 2021. It is now read-only.

Commit 4fa63bc

Browse files
authored
Updating to TLS 1.2 per Apple requirements
chapter-three#23
1 parent b8462bc commit 4fa63bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PublisherAPI/Curl.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ public function post($path, Array $path_args, Array $data = []) {
241241
'Authorization' => $this->auth($string)
242242
]
243243
);
244+
245+
// Set to use TLS 1.2
246+
$this->client->setOpt(CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
247+
244248
// Send POST request.
245249
return $this->request($contents);
246250
}

0 commit comments

Comments
 (0)