diff --git a/cli/index.ts b/cli/index.ts index c91fb93f..67f7faad 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -156,7 +156,9 @@ async function serve(port: number, pathToSpec: string, options: Options = {}) { }, ); } else if (request.url === '/') { - respondWithGzip(pageHTML, request, response); + respondWithGzip(pageHTML, request, response, { + 'Content-Type': 'text/html', + }); } else if (request.url === '/spec.json') { const specStr = JSON.stringify(spec, null, 2); respondWithGzip(specStr, request, response, {