httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1715289 - /httpd/httpd/trunk/server/core.c
Date Thu, 19 Nov 2015 21:42:23 GMT
Author: jailletc36
Date: Thu Nov 19 21:42:23 2015
New Revision: 1715289

URL: http://svn.apache.org/viewvc?rev=1715289&view=rev
Log:
Connection header field should use "upgrade" instead of "Upgrade"

Modified:
    httpd/httpd/trunk/server/core.c

Modified: httpd/httpd/trunk/server/core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core.c?rev=1715289&r1=1715288&r2=1715289&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core.c (original)
+++ httpd/httpd/trunk/server/core.c Thu Nov 19 21:42:23 2015
@@ -5379,7 +5379,7 @@ static int core_upgrade_handler(request_
                     /* Let the client know what we are upgrading to. */
                     apr_table_clear(r->headers_out);
                     apr_table_setn(r->headers_out, "Upgrade", protocol);
-                    apr_table_setn(r->headers_out, "Connection", "Upgrade");
+                    apr_table_setn(r->headers_out, "Connection", "upgrade");
                     
                     r->status = HTTP_SWITCHING_PROTOCOLS;
                     r->status_line = ap_get_status_line(r->status);
@@ -5404,7 +5404,7 @@ static int core_upgrade_handler(request_
         if (upgrades && upgrades->nelts > 0) {
             char *protocols = apr_array_pstrcat(r->pool, upgrades, ',');
             apr_table_setn(r->headers_out, "Upgrade", protocols);
-            apr_table_setn(r->headers_out, "Connection", "Upgrade");
+            apr_table_setn(r->headers_out, "Connection", "upgrade");
         }
     }
     



Mime
View raw message