/*
- * $Id: HttpHeader.cc,v 1.29 1998/04/03 22:26:32 rousskov Exp $
+ * $Id: HttpHeader.cc,v 1.30 1998/04/05 20:32:44 wessels Exp $
*
* DEBUG: section 55 HTTP Header
* AUTHOR: Alex Rousskov
HDR_ACCEPT_CHARSET, HDR_ACCEPT_ENCODING, HDR_ACCEPT_LANGUAGE,
HDR_ACCEPT_RANGES,
/* HDR_ALLOW, */
- HDR_CACHE_CONTROL, HDR_CONNECTION,
+ HDR_CACHE_CONTROL,
HDR_CONTENT_ENCODING,
/* HDR_CONTENT_LANGUAGE, */
/* HDR_IF_MATCH, HDR_IF_NONE_MATCH, HDR_PRAGMA, */
/*
- * $Id: HttpReply.cc,v 1.13 1998/03/20 18:06:39 rousskov Exp $
+ * $Id: HttpReply.cc,v 1.14 1998/04/05 20:32:44 wessels Exp $
*
* DEBUG: section 58 HTTP Reply (Response)
* AUTHOR: Alex Rousskov
rep->cache_control = httpHeaderGetCc(hdr);
rep->content_range = httpHeaderGetContRange(hdr);
str = httpHeaderGetStr(hdr, HDR_PROXY_CONNECTION);
- rep->pconn_keep_alive = str && strcasecmp(str, "Keep-Alive");
+ if (NULL == str)
+ str = httpHeaderGetStr(hdr, HDR_CONNECTION); /* @?@ FIX ME */
+ rep->proxy_keep_alive = str && 0 == strcasecmp(str, "Keep-Alive");
/* final adjustments */
/* The max-age directive takes priority over Expires, check it first */
if (rep->cache_control && rep->cache_control->max_age >= 0)
/*
- * $Id: http.cc,v 1.262 1998/04/01 21:23:01 wessels Exp $
+ * $Id: http.cc,v 1.263 1998/04/05 20:32:45 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
if (EBIT_TEST(httpState->flags, HTTP_KEEPALIVE))
if (httpState->peer)
httpState->peer->stats.n_keepalives_sent++;
- if (reply->pconn_keep_alive)
+ if (reply->proxy_keep_alive)
if (httpState->peer)
httpState->peer->stats.n_keepalives_recv++;
ctx_exit(ctx);
String content_type;
HttpHdrCc *cache_control;
HttpHdrContRange *content_range;
- short int pconn_keep_alive;
+ short int proxy_keep_alive;
/* public, readable */
HttpMsgParseState pstate; /* the current parsing state */