From: Jann Horn Date: Sat, 29 Mar 2014 12:21:31 +0000 (+0100) Subject: fix pulser X-Git-Url: http://git.thejh.net/?p=detour.git;a=commitdiff_plain;h=b2a2f3d5cc67240d1450c48700a20f07270a42c2;hp=99743142a6ff0f0c8ea2acdf8863cede4689d7eb fix pulser --- diff --git a/pulser.c b/pulser.c index 91fc5db..370d1ff 100644 --- a/pulser.c +++ b/pulser.c @@ -6,6 +6,7 @@ void handle_connection(int s) { char line_in[100]; if (!fgets(line_in, 100, stdin)) return; + if (!strncmp(line_in, "GET /", strlen("GET /"))) return; char *p = line_in + strlen("GET /"); setbuf(stdout, NULL);