title: GET request not working on Chrome --> net::ERR_CONTENT_LENGTH_MISMATCH
body: <p>I've built a simple concurrent web server with TCP sockets in Java.</p>
  
  <p>When I make a GET request to my web server:</p>
  
  <blockquote>
    <p><a href="http://localhost:32000/examples/index.html" rel="nofollow">http://localhost:32000/examples/index.html</a></p>
  </blockquote>
  
  <p>It works fine on Firefox and Internet Explorer, the html page (a very simple one) is loaded ok, but not on Chrome.</p>
  
  <p>The thing is that with Chrome the response is 200 OK Status, but the content of the html page is never loaded. At the console, at network, I get the next status field:</p>
  
  <blockquote>
    <p><strong><em>"(failed) net::ERR_CONTENT_LENGTH_MISMATCH"</em></strong></p>
  </blockquote>
  
  <p>but the response headers in the Chrome console are as follow (content-length is included!!):</p>
  
  <pre><code>HTTP/1.1 200 OK
  Content-Type: text/html
  Content-Length: 365
  Access-Control-Allow-Origin: *
  </code></pre>
  
  <p>The GET request:</p>
  
  <pre><code>    GET /example/index.html HTTP/1.1
      Host: localhost:32000
      Connection: keep-alive
      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
      User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36
      Accept-Encoding: gzip, deflate, sdch
      Accept-Language: es-ES,es;q=0.8,en;q=0.6
  </code></pre>
  
  <p>Maybe is a response headers problem, I'v tried including <em>"Access-Control-Allow-Origin: *"</em> but it hasn't solved it.</p>
  
  <p><strong>Any idea where this problem may originate?</strong> If you need any piece of web server code don't hesitate on ask for it.</p>