Skip to content

Commit

Permalink
Update User-Agent header in CurlHttpClient
Browse files Browse the repository at this point in the history
CS-5051
  • Loading branch information
MarijaIv committed Jan 30, 2024
1 parent 3303b54 commit 043f2e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [Unreleased](https://github.com/Adyen/adyen-php-plugin-core/compare/main...dev)
- Add setCurrencies method to PaymentMethodResponse
- Update User-Agent header in CurlHttpClient

## [1.1.5 - 1.1.6](https://github.com/Adyen/adyen-php-plugin-core/compare/1.1.5...1.1.6) - 20204-01-22
- Set default value for default payment link expiration time.
Expand Down
4 changes: 2 additions & 2 deletions src/Infrastructure/Http/CurlHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ protected function setCommonOptionsForCurlSession()
$this->curlOptions[CURLOPT_SSL_VERIFYPEER] = static::SSL_STRICT_MODE;
$this->curlOptions[CURLOPT_SSL_VERIFYHOST] = static::SSL_STRICT_MODE;
// Set default user agent, because for some shops if user agent is missing, request will not work.
$this->curlOptions[CURLOPT_USERAGENT] =
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36';
$this->curlOptions[CURLOPT_USERAGENT] = 'Adyen-Integration-Core-HTTPClient/1.0 Adyen-'
. $this->getConfigService()->getIntegrationName() . 'Module';
}

/**
Expand Down

0 comments on commit 043f2e9

Please sign in to comment.