From 7215fb5a2b9abfd46374c1449ae9b5cb216280b1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 2 Jan 2013 12:08:09 +0100 Subject: parse status header code from cgi scripts --- proc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'proc.c') diff --git a/proc.c b/proc.c index ddd1909..4880727 100644 --- a/proc.c +++ b/proc.c @@ -178,6 +178,7 @@ static void proc_handle_header(struct relay *r, const char *name, const char *va buf[3] = 0; snprintf(status_buf, sizeof(status_buf), "%s", sep + 1); cl->dispatch.proc.status_msg = status_buf; + cl->dispatch.proc.status_code = atoi(buf); return; } -- cgit v1.2.3