new reCaptcha feature not working correctly

#1
Server returns invalid content type.
Content-Type: application/octet-stream
and one more question: why charset is windows-1252

Code:
# curl -v https://domain.com/
*   Trying 0.0.0.0:443...
* TCP_NODELAY set
* Connected to domain.com (0.0.0.0) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
* Server certificate: sni78067.cloudflaressl.com
* Server certificate: COMODO ECC Domain Validation Secure Server CA 2
* Server certificate: COMODO ECC Certification Authority
> GET / HTTP/1.1
> Host: domain.com
> User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
> Accept: */*
> Referer:
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Fri, 13 Sep 2019 12:18:40 GMT
< Content-Type: application/octet-stream
< Content-Length: 1725
< Connection: keep-alive
< Set-Cookie: __cfduid=............; expires=Sat, 12-Sep-20 12:18:40 GMT; path=/; domain=.domain.com; HttpOnly
< Last-Modified: Fri, 13 Sep 2019 11:38:02 GMT
< Accept-Ranges: bytes
< Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< Server: cloudflare
< CF-RAY: xxxx-xxx
<
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Bot Verification</title>
    <script>
        function onSubmit() {
            document.getElementById('lsrecaptcha-form').submit();
        }

        var onloadCallback = async function() {
            var cont = grecaptcha.render('recaptchadiv', {
                'sitekey': '<!--#echo var="ENV:LSRECAPTCHA_SITE_KEY"-->',
                'callback': onSubmit,
                <!--#echo var="ENV:LSRECAPTCHA_TYPE_PARAM"-->
            });
            await grecaptcha.execute(cont);
        };
    </script>
    <style>
        body {
        height: 100%;
        }
        .panel {
        padding: 30px;
        max-width: 425px;
        margin: 10% auto;
        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
        }
        .title {
        font-size: 1.5em;
        font-weight: 100;
        margin-top: 10px;
        text-align: center;
        }
        .recaptcha-center {
        margin-top: 35px;
        margin-bottom: 20px;
        margin-left: 13%;
        margin-right: 13%;
        display: block;
        }
    </style>
</head>
<body>
    <div class="panel">
        <h3 class="title">Verifying that you are not a robot...</h3>
        <form id="lsrecaptcha-form" method="POST" action="/.lsrecap/recaptcha?<!--#echo var="ENV:LSRECAPTCHA_QUERY"-->">
            <div id="recaptchadiv" class="recaptcha-center"></div>
        </form>
    </div>
    <script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"
            async defer>
    </script>
</body>
</html>
* Connection #0 to host domain.com left intact
 
Top