diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-01 21:46:12 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-01 21:46:39 +0100 |
commit | e4f960ca74af4a89743bb5266423b13e3d1b6235 (patch) | |
tree | 6afad1045597d38630c520f8a8a215913d090f0c /client.c | |
parent | 46cf4c79368daa556ed6936999ab05408f61da00 (diff) |
add uh_split_header()
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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); |