Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions php/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -762,12 +762,6 @@ function http_request( $method, $url, $data = null, $headers = [], $options = []
$options['verify'] = ! empty( ini_get( 'curl.cainfo' ) ) ? ini_get( 'curl.cainfo' ) : true;
}

// The certificate location provided by default by the Requests library could point to a file inside a Phar archive.
// This is not supported by cURL, so we need to extract the file to a temporary location.
if ( 0 === strpos( $options['verify'], PHAR_STREAM_PREFIX ) ) {
$options['verify'] = extract_from_phar( $options['verify'] );
}

try {
try {
return Requests::request( $url, $headers, $data, $method, $options );
Expand Down