mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
chore: remove optional Link header
This commit is contained in:
@@ -110,7 +110,7 @@ readonly class GandiConnector implements ConnectorInterface
|
|||||||
if (true !== $acceptConditions
|
if (true !== $acceptConditions
|
||||||
|| true !== $ownerLegalAge
|
|| true !== $ownerLegalAge
|
||||||
|| true !== $waiveRetractationPeriod) {
|
|| 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())
|
$response = $client->request('GET', '/v5/organization/user-info', (new HttpOptions())
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ readonly class OvhConnector implements ConnectorInterface
|
|||||||
if (true !== $acceptConditions
|
if (true !== $acceptConditions
|
||||||
|| true !== $ownerLegalAge
|
|| true !== $ownerLegalAge
|
||||||
|| true !== $waiveRetractationPeriod) {
|
|| 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(
|
$conn = new Api(
|
||||||
|
|||||||
Reference in New Issue
Block a user