Adapted finish_http_response to new list_to_text
authoroes <oes@users.sourceforge.net>
Sun, 5 Aug 2001 15:57:38 +0000 (15:57 +0000)
committeroes <oes@users.sourceforge.net>
Sun, 5 Aug 2001 15:57:38 +0000 (15:57 +0000)
cgi.c

diff --git a/cgi.c b/cgi.c
index 77a7e6c..7326bca 100644 (file)
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-const char cgi_rcs[] = "$Id: cgi.c,v 1.15 2001/08/01 21:19:22 jongfoster Exp $";
+const char cgi_rcs[] = "$Id: cgi.c,v 1.16 2001/08/01 21:33:18 jongfoster Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/cgi.c,v $
@@ -36,6 +36,11 @@ const char cgi_rcs[] = "$Id: cgi.c,v 1.15 2001/08/01 21:19:22 jongfoster Exp $";
  *
  * Revisions   :
  *    $Log: cgi.c,v $
+ *    Revision 1.16  2001/08/01 21:33:18  jongfoster
+ *    Changes to fill_template() that reduce memory usage without having
+ *    an impact on performance.  I also renamed some variables so as not
+ *    to clash with the C++ keywords "new" and "template".
+ *
  *    Revision 1.15  2001/08/01 21:19:22  jongfoster
  *    Moving file version information to a separate CGI page.
  *
@@ -840,8 +845,7 @@ struct http_response *finish_http_response(struct http_response *rsp)
    enlist_unique(rsp->headers, "Last-Modified: Thu Jul 31, 1997 07:42:22 pm GMT", 14);
    enlist_unique(rsp->headers, "Expires:       Thu Jul 31, 1997 07:42:22 pm GMT", 8);
    enlist_unique(rsp->headers, "Content-Type: text/html", 13);
-   enlist(rsp->headers, "");
-  
+
 
    /* 
     * Write the head