mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-02-22 21:29:09 +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()
|
||||
}
|
||||
|
||||
if (len === 0) {
|
||||
res.end()
|
||||
}
|
||||
|
||||
return this.#stream(req, res, fullPath, opts, len)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user