Skip to content

Commit ba4c0b9

Browse files
szepeviktormnavarrocarter
authored andcommitted
Stop abusing domains in README
> ".example" is recommended for use in documentation or as examples.
1 parent 2fd054f commit ba4c0b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ as a second argument:
4444
use function MNC\Http\buffer;
4545
use function MNC\Http\fetch;
4646

47-
$response = fetch('https://some-domain.com/some-form', [
47+
$response = fetch('https://some-domain.example/some-form', [
4848
'method' => 'POST',
4949
'headers' => [
5050
'Content-Type' => 'application/json',
@@ -241,7 +241,7 @@ use function MNC\Http\fetch;
241241

242242
$authenticate = static function (string $token) {
243243
return static function (string $method, string $path, array $contents = null) use ($token): ?array {
244-
$url = 'https://my-api-service.com' . $path;
244+
$url = 'https://my-api-service.example' . $path;
245245
$response = fetch($url, [
246246
'method' => $method,
247247
'headers' => [
@@ -313,7 +313,7 @@ final class FetchApiClient implements ApiClient
313313
public static function authenticate(string $token): FetchApiClient
314314
{
315315
$client = static function (string $method, string $path, array $contents = null) use ($token): ?array {
316-
$url = 'https://my-api-service.com' . $path;
316+
$url = 'https://my-api-service.example' . $path;
317317
$response = fetch($url, [
318318
'method' => $method,
319319
'headers' => [

0 commit comments

Comments
 (0)