for a subrequest. When it *is* sent, list it in a Connection: header
as required by 2616.
PR: 32486
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@592457
13f79535-47bb-0310-9956-
ffa450edef68
SSL *ssl;
int i;
- if (sc->enabled == SSL_ENABLED_OPTIONAL && !(sslconn && sslconn->ssl)) {
+ /* If "SSLEngine optional" is configured, this is not an SSL
+ * connection, and this isn't a subrequest, send an Upgrade
+ * response header. */
+ if (sc->enabled == SSL_ENABLED_OPTIONAL && !(sslconn && sslconn->ssl)
+ && !r->main) {
apr_table_setn(r->headers_out, "Upgrade", "TLS/1.0, HTTP/1.1");
+ apr_table_mergen(r->headers_out, "Connection", "upgrade");
}
/*