various bug fixes

This commit is contained in:
rsc 2004-05-05 04:22:16 +00:00
parent 4f48d1d4f7
commit 2e965b3324
12 changed files with 82 additions and 41 deletions

View file

@ -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);