Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Alex ssl #14

Merged
merged 2 commits into from

3 participants

@banderous

No description provided.

@hmarr hmarr was assigned
@timrogers
Owner

I'll merge once back from holidays and will up version number - remind me if you can please.

@timrogers timrogers merged commit 0fe933b into master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 21, 2013
  1. @banderous
  2. @banderous
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/GoCardless/Request.php
View
4 lib/GoCardless/Request.php
@@ -84,6 +84,10 @@ protected static function call($method, $url, $params = array()) {
// Request format
$curl_options[CURLOPT_HTTPHEADER][] = 'Accept: application/json';
+ // Enable SSL certificate validation.
+ // This is true by default since libcurl 7.1.
+ $curl_options[CURLOPT_SSL_VERIFYPEER] = true;
+
// Debug - DO NOT USE THIS IN PRODUCTION FOR SECURITY REASONS
//
// This fixes a problem in some environments with connecting to HTTPS-enabled servers.
Something went wrong with that request. Please try again.