Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3174996
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3174996
Commits
9a3772de
Commit
9a3772de
authored
10 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2244185
by damiankloip: Remove cURL dependent options from HTTP client.
parent
c8f6aceb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal/Core/Http/Client.php
+1
-6
1 addition, 6 deletions
core/lib/Drupal/Core/Http/Client.php
with
1 addition
and
6 deletions
core/lib/Drupal/Core/Http/Client.php
+
1
−
6
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/)'
,
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment