diff options
Diffstat (limited to 'src/libhttpd/parsereq.c')
-rw-r--r-- | src/libhttpd/parsereq.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |