Skip to content

Commit

Permalink
chore: remove optional Link header
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Aug 6, 2024
1 parent 9b8e84e commit e1cad45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Config/Connector/GandiConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static function verifyAuthData(array $authData, HttpClientInterface $clie
if (true !== $acceptConditions
|| true !== $ownerLegalAge
|| true !== $waiveRetractationPeriod) {
throw new HttpException(451, 'The user has not given explicit consent', null, ['Link' => '<https://www.gandi.net/en/contracts/terms-of-service>; rel="blocked-by"']);
throw new HttpException(451, 'The user has not given explicit consent', null);
}

$response = $client->request('GET', '/v5/organization/user-info', (new HttpOptions())
Expand Down
2 changes: 1 addition & 1 deletion src/Config/Connector/OvhConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static function verifyAuthData(array $authData): array
if (true !== $acceptConditions
|| true !== $ownerLegalAge
|| true !== $waiveRetractationPeriod) {
throw new HttpException(451, 'The user has not given explicit consent', null, ['Link' => '<https://www.ovhcloud.com/fr/terms-and-conditions/contracts/>; rel="blocked-by"']);
throw new HttpException(451, 'The user has not given explicit consent', null);
}

$conn = new Api(
Expand Down

0 comments on commit e1cad45

Please sign in to comment.