diff --git a/doric-cli/src/resourceServer.ts b/doric-cli/src/resourceServer.ts index 0e8726fa..0641ad9d 100644 --- a/doric-cli/src/resourceServer.ts +++ b/doric-cli/src/resourceServer.ts @@ -18,6 +18,7 @@ export async function createResServer() { const resourcePath = path.join(dirPath, `${fileRealName}`); if (fs.existsSync(resourcePath)) { const data = fs.readFileSync(resourcePath); + response.setHeader("content-length", data.length); response.write(data); response.end(); } else {