HTTP: Set clen correctly when serving gmap.html.
This commit is contained in:
@ -1854,6 +1854,7 @@ void handleHTTPRequest(struct client *c) {
|
|||||||
{
|
{
|
||||||
content = malloc(sbuf.st_size);
|
content = malloc(sbuf.st_size);
|
||||||
read(fd,content,sbuf.st_size);
|
read(fd,content,sbuf.st_size);
|
||||||
|
clen = sbuf.st_size;
|
||||||
} else {
|
} else {
|
||||||
char buf[128];
|
char buf[128];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user