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.
This commit is contained in:
Leonid Nikitin 2023-12-03 00:58:47 +06:00
parent c39f6ba4d7
commit d9e9564ea8
Signed by: kor-elf
GPG Key ID: 604A019EB118CAC4

View File

@ -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([