From 2e965b3324b32be00a2193bf304dcb936f02824b Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 5 May 2004 04:22:16 +0000 Subject: various bug fixes --- src/libhttpd/parsereq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libhttpd/parsereq.c') diff --git a/src/libhttpd/parsereq.c b/src/libhttpd/parsereq.c index 7ef63413..94237988 100644 --- a/src/libhttpd/parsereq.c +++ b/src/libhttpd/parsereq.c @@ -41,8 +41,8 @@ hparsereq(HConnect *c, int timeout) * only works for http/1.1 or later. */ alarm(timeout); - if(!hgethead(c, 0)) - return 0; + if(hgethead(c, 0) < 0) + return -1; alarm(0); c->reqtime = time(nil); c->req.meth = getword(c); -- cgit v1.2.3