From e1cad45028fa781786e23041968688986beaff79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Tue, 6 Aug 2024 23:13:14 +0200 Subject: [PATCH] chore: remove optional Link header --- src/Config/Connector/GandiConnector.php | 2 +- src/Config/Connector/OvhConnector.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config/Connector/GandiConnector.php b/src/Config/Connector/GandiConnector.php index 05623e6..a3aab23 100644 --- a/src/Config/Connector/GandiConnector.php +++ b/src/Config/Connector/GandiConnector.php @@ -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' => '; 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()) diff --git a/src/Config/Connector/OvhConnector.php b/src/Config/Connector/OvhConnector.php index 936dc3c..8bbd826 100644 --- a/src/Config/Connector/OvhConnector.php +++ b/src/Config/Connector/OvhConnector.php @@ -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' => '; rel="blocked-by"']); + throw new HttpException(451, 'The user has not given explicit consent', null); } $conn = new Api(