Do not hardcode URL
This commit is contained in:
parent
1cd4a3d935
commit
a785b5f243
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user