Author: adrian.chadd
Date: Mon Jun 29 09:26:34 2009
New Revision: 14103
Modified:
branches/LUSCA_HEAD/src/HttpReply.c
Log:
Fix issue 33 - revalidation / not modified responses failing
The root cause is some badly parsed if logic in httpReplyBodySize().
Modified: branches/LUSCA_HEAD/src/HttpReply.c
==============================================================================
--- branches/LUSCA_HEAD/src/HttpReply.c (original)
+++ branches/LUSCA_HEAD/src/HttpReply.c Mon Jun 29 09:26:34 2009
@@ -543,10 +543,9 @@
{
if (reply->sline.version.major < 1)
return -1;
- else if (method != NULL) {
- if (method->code == METHOD_HEAD)
+ else if (method != NULL&& method->code == METHOD_HEAD)
return 0;
- } else if (reply->sline.status == HTTP_OK)
+ else if (reply->sline.status == HTTP_OK)
(void) 0; /* common case, continue */
else if (reply->sline.status == HTTP_NO_CONTENT)
return 0;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---