mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-02-23 05:39:05 +00:00
fix: ServeStatic with zero bytes files
This commit is contained in:
parent
bea63b07d8
commit
d40d1e396f
@ -255,6 +255,10 @@ class ServeStatic {
|
|||||||
return res.end()
|
return res.end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (len === 0) {
|
||||||
|
res.end()
|
||||||
|
}
|
||||||
|
|
||||||
return this.#stream(req, res, fullPath, opts, len)
|
return this.#stream(req, res, fullPath, opts, len)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user