-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix security issue with defaulting to skipping certificate validation
- Loading branch information
Showing
3 changed files
with
93 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
* and "chainabilty" of the library. | ||
* | ||
* @author Nate Good <[email protected]> | ||
* | ||
* | ||
* @method self sendsJson() | ||
* @method self sendsXml() | ||
* @method self sendsForm() | ||
|
@@ -56,7 +56,7 @@ class Request | |
$method = Http::GET, | ||
$headers = [], | ||
$raw_headers = '', | ||
$strict_ssl = false, | ||
$strict_ssl = true, | ||
$content_type, | ||
$expected_type, | ||
$additional_curl_opts = [], | ||
|
@@ -520,7 +520,7 @@ public function useSocks5Proxy($proxy_host, $proxy_port = 80, $auth_type = null, | |
public function hasProxy(): bool | ||
{ | ||
/* We must be aware that proxy variables could come from environment also. | ||
In curl extension, http proxy can be specified not only via CURLOPT_PROXY option, | ||
In curl extension, http proxy can be specified not only via CURLOPT_PROXY option, | ||
but also by environment variable called http_proxy. | ||
*/ | ||
return isset($this->additional_curl_opts[CURLOPT_PROXY]) && is_string($this->additional_curl_opts[CURLOPT_PROXY]) || | ||
|
@@ -1087,7 +1087,7 @@ public function buildResponse($result) { | |
|
||
$body = array_pop($response); | ||
$headers = array_pop($response); | ||
|
||
return new Response($body, $headers, $this, $info); | ||
} | ||
|
||
|