-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK) #55
Comments
Hey, please tell me the versions you are using. |
bw_captcha v3.1.0, TYPO3 12.4.9, PHP 8.2.7 with Chrome Version 120.0.6099.129 (Offizieller Build) (64-Bit). Firefox 103.0.1 (64-Bit) does not complain about the content length. Whats quirky is, that the error does not appear on refreshing the captcha image. It's wierd. If the image would not vanish i wouldn't care to much, but currently the captcha is not usable as it is. |
The problem only occures on the initial load because the Catcha Middleware only sets the Content-Length if the now parameter isn't set. Now only gets set in the refresh of the captcha. So this behaviour is correct. I changed from:
to:
and the error is gone. I quite do not get the calculation. The Content-Length should always match the binary values of the response body. So why doing math on the string length at all? |
Sorry for not checking this first. My composer.json was missing ext-gd which resulted in an older version with composer req. I should have checked this first. |
When opening a form with an included captcha the captcha is shown at first and after a few seconds it gets replace with an broken image icon and the error
net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
Which leads to not being able to solve the captcha.
The text was updated successfully, but these errors were encountered: