Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
salesforce
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
salesforce
Merge requests
!79
Issue
#3445088
: Call to undefined method GuzzleHttp\Utils::defaultUserAgent()
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3445088
: Call to undefined method GuzzleHttp\Utils::defaultUserAgent()
issue/salesforce-3445088:3445088-call-to-undefined
into
5.0.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Open
Ruud Simons
requested to merge
issue/salesforce-3445088:3445088-call-to-undefined
into
5.0.x
11 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#3445088
0
0
Merge request reports
Compare
5.0.x
5.0.x (HEAD)
and
latest version
latest version
b9860fbe
1 commit,
11 months ago
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Tests/TestHttpClientFactory.php
+
3
−
1
Options
@@ -22,6 +22,8 @@ class TestHttpClientFactory extends ClientFactory {
* The HTTP client.
*/
public
function
fromOptions
(
array
$config
=
[])
{
$default_user_agent
=
method_exists
(
'GuzzleHttp\Utils'
,
'defaultUserAgent'
)
?
Utils
::
defaultUserAgent
()
:
\GuzzleHttp\default_user_agent
();
$default_config
=
[
// Security consideration: we must not use the certificate authority
// file shipped with Guzzle because it can easily get outdated if a
@@ -32,7 +34,7 @@ class TestHttpClientFactory extends ClientFactory {
'verify'
=>
TRUE
,
'timeout'
=>
30
,
'headers'
=>
[
'User-Agent'
=>
'Drupal/'
.
\Drupal
::
VERSION
.
' (+https://www.drupal.org/) '
.
Utils
::
default
U
ser
A
gent
()
,
'User-Agent'
=>
'Drupal/'
.
\Drupal
::
VERSION
.
' (+https://www.drupal.org/) '
.
$
default
_u
ser
_a
gent
,
],
'handler'
=>
$this
->
stack
,
// Security consideration: prevent Guzzle from using environment variables
Loading