1
0

Do not hardcode URL

This commit is contained in:
Richard Dern 2024-05-09 01:15:16 +02:00
parent 1cd4a3d935
commit a785b5f243

View File

@ -10,7 +10,7 @@ public static function validateSource(string $html)
{ {
$response = Http::withHeaders([ $response = Http::withHeaders([
'Content-Type' => 'text/html; charset=utf-8', 'Content-Type' => 'text/html; charset=utf-8',
])->withBody($html, 'text/html')->post('http://nu-validator:8888/?out=json'); ])->withBody($html, 'text/html')->post(env('HTML5_VALIDATOR_URL') . '/?out=json');
$json = $response->json(); $json = $response->json();