chore: remove optional Link header

This commit is contained in:
Maël Gangloff
2024-08-06 23:13:14 +02:00
parent 9b8e84e4e7
commit e1cad45028
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ readonly class GandiConnector implements ConnectorInterface
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())

View File

@@ -145,7 +145,7 @@ readonly class OvhConnector implements ConnectorInterface
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(