When in request satisfaction mode and no body is expected, mark the store
entry as complete. Otherwise the ClientStreams(?) triggered by the
clientGetMoreData call will get stuck waiting for more data from the store.
There is probably a better way to do this (e.g., completely bypassing store).
/*
- * $Id: client_side_request.cc,v 1.93 2007/09/27 22:42:08 hno Exp $
+ * $Id: client_side_request.cc,v 1.94 2007/10/16 15:57:28 rousskov Exp $
*
* DEBUG: section 85 Client-side Request Routines
* AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
request_satisfaction_mode = true;
request_satisfaction_offset = 0;
storeEntry()->replaceHttpReply(new_rep);
+
+ if (!icapBodySource) // no body
+ storeEntry()->complete();
clientGetMoreData(node, this);
}