From d9e9564ea8d43daa3a9db2e5df9fd44c49795291 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sun, 3 Dec 2023 00:58:47 +0600 Subject: [PATCH] Fix typo in 'user_agent' key assignment. A typo in the key assignment for 'user_agent' in the CaptchaService has been fixed. The key was previously incorrectly typed as 'user_ageng'. This issue was causing problems with HTTP posts where user agent data was not being properly passed due to the misspelt key. --- src/CaptchaService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CaptchaService.php b/src/CaptchaService.php index 1c5a608..7680148 100644 --- a/src/CaptchaService.php +++ b/src/CaptchaService.php @@ -17,7 +17,7 @@ final readonly class CaptchaService try { $post = []; if (!is_null($userAgent)) { - $post['user_ageng'] = $userAgent; + $post['user_agent'] = $userAgent; } $response = Http::withHeaders([