From: Paul J. Reder Date: Thu, 18 Dec 2008 17:22:54 +0000 (+0000) Subject: Commit promoted backport of PR 46066. X-Git-Tag: 2.2.12~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37fe212f1e5e928c5627a390d8dd30ce916acad8;p=thirdparty%2Fapache%2Fhttpd.git Commit promoted backport of PR 46066. *) Set Listen protocol to "https" if port is set to 443 and no proto is specified (as documented but not implemented). PR 46066 [Dan Poirier ] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@727769 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index d656b581882..5420876a48c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.2.12 + *) Set Listen protocol to "https" if port is set to 443 and no proto is specified + (as documented but not implemented). PR 46066 [Dan Poirier ] + *) mod_cache: Correctly save Content-Encoding of cachable entity. PR 46401 [Dan Poirier ] diff --git a/STATUS b/STATUS index c22597128d9..5d541fd3130 100644 --- a/STATUS +++ b/STATUS @@ -95,14 +95,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK: http://people.apache.org/~rederpj/backport_PR45994_util_ldap.c.diff +1: rederpj, rpluem, covener - * Set Listen protocol to "https" if port is set to 443 and no proto is specified - (as documented but not implemented). PR 46066 [Dan Poirier ] - Trunk version of patch: - http://svn.apache.org/viewvc?view=rev&revision=727477 - Backport version for 2.2.x of patch (trunk patch applies with offset): - http://people.apache.org/~rederpj/backport_PR46066_443https.diff - +1: rederpj, rpluem, covener - PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ New proposals should be added at the end of the list ] diff --git a/server/listen.c b/server/listen.c index d1e6da8ebfd..b284d83b3c7 100644 --- a/server/listen.c +++ b/server/listen.c @@ -633,7 +633,11 @@ AP_DECLARE_NONSTD(const char *) ap_set_listener(cmd_parms *cmd, void *dummy, } if (argc != 2) { - proto = "http"; + if (port == 443) { + proto = "https"; + } else { + proto = "http"; + } } else { proto = apr_pstrdup(cmd->pool, argv[1]);