mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(route) set content length
This commit is contained in:
parent
cb37ab871b
commit
a71dca0e70
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue