/*
- * $Id: HttpReply.cc,v 1.66 2004/08/30 05:12:31 robertc Exp $
+ * $Id: HttpReply.cc,v 1.67 2004/12/08 00:16:36 hno Exp $
*
* DEBUG: section 58 HTTP Reply (Response)
* AUTHOR: Alex Rousskov
int
httpReplyBodySize(method_t method, HttpReply const * reply)
{
- if (METHOD_HEAD == method)
+ if (reply->sline.version.major < 1)
+ return -1;
+ else if (METHOD_HEAD == method)
return 0;
else if (reply->sline.status == HTTP_OK)
(void) 0; /* common case, continue */