From e4f960ca74af4a89743bb5266423b13e3d1b6235 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 1 Jan 2013 21:46:12 +0100 Subject: add uh_split_header() --- client.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index e507995..6e75c5b 100644 --- a/client.c +++ b/client.c @@ -188,16 +188,10 @@ static int client_parse_header(struct client *cl, char *data) return CLIENT_STATE_DATA; } - val = strchr(data, ':'); + val = uh_split_header(data); if (!val) return CLIENT_STATE_DONE; - *val = 0; - val++; - - while (isspace(*val)) - val++; - for (name = data; *name; name++) if (isupper(*name)) *name = tolower(*name); -- cgit v1.2.3