summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-02 12:08:09 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-02 12:08:09 +0100
commit7215fb5a2b9abfd46374c1449ae9b5cb216280b1 (patch)
tree3c302fe8e421f803a3366596fa13a5db86ec2dd7 /proc.c
parentcae905876089e82d6ac8af0acc700c018d352939 (diff)
parse status header code from cgi scripts
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c1
1 files changed, 1 insertions, 0 deletions
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;
}