From 42eb9906855406fbeb9f410706b29b358cd02094 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 14 Jan 2013 20:25:11 +0100 Subject: [PATCH] HTTP: Set clen correctly when serving gmap.html. --- dump1090.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dump1090.c b/dump1090.c index 3323515..e168a98 100644 --- a/dump1090.c +++ b/dump1090.c @@ -1854,6 +1854,7 @@ void handleHTTPRequest(struct client *c) { { content = malloc(sbuf.st_size); read(fd,content,sbuf.st_size); + clen = sbuf.st_size; } else { char buf[128];