Fix Content-Length calculation

This commit is contained in:
Quentin Rameau 2017-07-22 00:07:00 +02:00 committed by Laslo Hunhold
parent 2a5ab48294
commit 64e7dc3fda

View file

@ -695,7 +695,7 @@ sendresponse(int fd, struct request *r)
/* range */
lower = 0;
upper = st.st_size;
upper = st.st_size - 1;
if (r->field[REQ_RANGE][0]) {
/* parse field */