lukeed / sirv

An optimized middleware & CLI application for serving static files~!
MIT License
1.07k stars 58 forks source link

net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK) #145

Closed dy closed 2 years ago

dy commented 2 years ago

Having a simple setup index.html:

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>XI labs</title>
    <link rel="shortcut icon" href="#" />
  </head>
  <body>
    <main id="xi"></main>
  </body>
</html>

running

sirv . --port 8080 --cors --single

getting

GET http://localhost:8080/ net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

What's that about?

dy commented 2 years ago

Apparently dev mode needed to be turned on sirv -D (it wasn't clear if dev mode pertains to sirv dev or user dev)