chore(route) set content length

This commit is contained in:
coderaiser 2021-03-01 18:03:12 +02:00
parent cb37ab871b
commit a71dca0e70

View file

@ -94,8 +94,10 @@ async function route({config, options, request, response}) {
}));
}
const {contentLength} = stream;
response.setHeader('Content-Length', contentLength);
response.setHeader('Content-Type', contentType(extname(fullPath)));
//response.setHeader('Content-Length', contentLength);
await pipe([
stream,