From 12019a6754666e6cc48ca4bb10db095d0228b21e Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 12 Apr 2010 16:48:45 +0000 Subject: [PATCH] Stop adding a "Connection: close" header in finish_http_response(), as we're no longer required to do it. --- cgi.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cgi.c b/cgi.c index 93af14b8..8f1807f0 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -const char cgi_rcs[] = "$Id: cgi.c,v 1.125 2009/06/14 14:37:08 fabiankeil Exp $"; +const char cgi_rcs[] = "$Id: cgi.c,v 1.126 2009/10/29 16:53:56 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgi.c,v $ @@ -1636,14 +1636,6 @@ struct http_response *finish_http_response(const struct client_state *csp, struc if (!err) err = enlist_unique_header(rsp->headers, "Pragma", "no-cache"); } - /* - * Quoting RFC 2616: - * - * HTTP/1.1 applications that do not support persistent connections MUST - * include the "close" connection option in every message. - */ - if (!err) err = enlist_unique_header(rsp->headers, "Connection", "close"); - /* * Write the head */ -- 2.39.2