quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit 64e7dc3fdaabb47446eeb04e2d7849f91add26e5
parent 2a5ab48294226cff51e050c8bc1bc798caa46891
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sat, 22 Jul 2017 00:07:00 +0200

Fix Content-Length calculation

Diffstat:
quark.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/quark.c b/quark.c @@ -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 */