diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2009-04-24 13:22:02 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2009-04-24 13:22:02 +0000 |
commit | 937f09733fdb4f68610763fc5c51fa6288ac8521 (patch) | |
tree | a24bc39f2d4b56c5584f889560b51bf6df208be0 | |
parent | 5f16554f07de98ec9098fdd6d10bd707972f9255 (diff) |
don't truncate http headers when no separator is given between key and
value.
ok & ``makes sense'' reyk@
-rw-r--r-- | usr.sbin/relayd/relay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c index 8117c8e21cf..73cd73aa762 100644 --- a/usr.sbin/relayd/relay.c +++ b/usr.sbin/relayd/relay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay.c,v 1.109 2009/04/02 14:30:51 reyk Exp $ */ +/* $OpenBSD: relay.c,v 1.110 2009/04/24 13:22:01 pyr Exp $ */ /* * Copyright (c) 2006, 2007, 2008 Reyk Floeter <reyk@openbsd.org> @@ -1366,7 +1366,7 @@ relay_read_http(struct bufferevent *bev, void *arg) } if (*pk.value == ':') { *pk.value++ = '\0'; - pk.value++; + pk.value += strspn(pk.value, " \t\r\n"); header = 1; } else { *pk.value++ = '\0'; |