if (!parseHead(icapReply))
return;
+ if (httpHeaderHasConnDir(&icapReply->header, "close")) {
+ debugs(93, 5, HERE << "found connection close");
+ reuseConnection = false;
+ }
+
switch (icapReply->sline.status) {
case 100:
state.parsing = State::psBody;
}
+/*
+ * Common routine used to parse both HTTP and ICAP headers
+ */
bool ICAPModXact::parseHead(HttpMsg *head)
{
assert(head);
return false;
}
- if (httpHeaderHasConnDir(&head->header, "close")) {
- debug(93,5)("%s(%d) found connection close\n", __FILE__,__LINE__);
- reuseConnection = false;
- }
-
readBuf.consume(head->hdr_sz);
return true;
}