From a785b5f2432f6a4324869066b32b3c0316c2a2f9 Mon Sep 17 00:00:00 2001 From: Richard Dern Date: Thu, 9 May 2024 01:15:16 +0200 Subject: [PATCH] Do not hardcode URL --- app/Services/HtmlValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/HtmlValidator.php b/app/Services/HtmlValidator.php index 019147d..31bb31f 100644 --- a/app/Services/HtmlValidator.php +++ b/app/Services/HtmlValidator.php @@ -10,7 +10,7 @@ public static function validateSource(string $html) { $response = Http::withHeaders([ '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();