summaryrefslogtreecommitdiffhomepage
path: root/src/conns.c
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2003-04-16 16:37:59 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2003-04-16 16:37:59 +0000
commit6ff4192069b98cee26939d156f952f4ee6a851f2 (patch)
tree3b0f6f17deeb35e7344dedb5f09300f9a6b7f03a /src/conns.c
parentacece1ee67685628be3ab4a6516163602091473f (diff)
Removed the remote_content_length field in the "conn" structure and
replaced it with a smaller structure containing both the remote/server and the local/client content-length fields if they're present in the HTTP response headers.
Diffstat (limited to 'src/conns.c')
-rw-r--r--src/conns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conns.c b/src/conns.c
index 74590b1..8a0e038 100644
--- a/src/conns.c
+++ b/src/conns.c
@@ -1,4 +1,4 @@
-/* $Id: conns.c,v 1.14 2003-03-13 21:27:29 rjkaes Exp $
+/* $Id: conns.c,v 1.15 2003-04-16 16:37:59 rjkaes Exp $
*
* Create and free the connection structure. One day there could be
* other connection related tasks put here, but for now the header
@@ -69,7 +69,8 @@ initialize_conn(int client_fd, const char* ipaddr, const char* string_addr)
connptr->protocol.major = connptr->protocol.minor = 0;
- connptr->remote_content_length = -1;
+ /* There is _no_ content length initially */
+ connptr->content_length.server = connptr->content_length.client = -1;
connptr->client_ip_addr = safestrdup(ipaddr);
connptr->client_string_addr = safestrdup(string_addr);