mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Tokenize the header while parsing it for the upgrade tokens and once the protocol has been upgraded, allow the request to complete encrypted.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104273 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1013,7 +1013,7 @@ int ssl_hook_Fixup(request_rec *r)
|
||||
SSL *ssl;
|
||||
int i;
|
||||
|
||||
if (sc->enabled == SSL_ENABLED_OPTIONAL) {
|
||||
if (sc->enabled == SSL_ENABLED_OPTIONAL && !(sslconn && sslconn->ssl)) {
|
||||
apr_table_setn(r->headers_out, "Upgrade", "TLS/1.0, HTTP/1.1");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user