Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
9a3772de
Commit
9a3772de
authored
Apr 18, 2014
by
Angie Byron
Browse files
Issue
#2244185
by damiankloip: Remove cURL dependent options from HTTP client.
parent
c8f6aceb
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Http/Client.php
View file @
9a3772de
...
...
@@ -22,12 +22,6 @@ class Client extends GuzzleClient {
*/
public
function
__construct
(
array
$config
=
[])
{
$default_config
=
array
(
'config'
=>
array
(
'curl'
=>
array
(
CURLOPT_TIMEOUT
=>
30
,
CURLOPT_MAXREDIRS
=>
3
,
),
),
// Security consideration: we must not use the certificate authority
// file shipped with Guzzle because it can easily get outdated if a
// certificate authority is hacked. Instead, we rely on the certificate
...
...
@@ -35,6 +29,7 @@ public function __construct(array $config = []) {
// going to be updated in a timely fashion. This overrides the default
// path to the pem file bundled with Guzzle.
'verify'
=>
TRUE
,
'timeout'
=>
30
,
'headers'
=>
array
(
'User-Agent'
=>
'Drupal (+http://drupal.org/)'
,
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment