Closed daveying closed 6 years ago
I realized that this is a problem of send
, and I noticed that there is a merge request to solve this problem, please update your send
to latest version. Thanks!
The send version used is already the latest version.
I use serve-static middleware with expressjs to serve a big file, when I request discontinuous partial content of that big file, serve-static will response with the whole file and the status code is 200 rather than 206. e.g. content of my big file (
localhost:5052/test.txt
) is:If I request with:
The response will be the whole file
But if the range is continuous, it works fine.
Please give some advises. Thanks