Bug#146211: Bug tracked
Hello,
The bug seems to originate with the difference given below
between 1.3.24.2+1.47 and 1.3.24.2+1.48. When this part of the patch
is reversed the redirect seems to return "https" entries instead of
"http" entries.
Thanks and regards,
Kapil.
============================relevant diff=======================
--- apache-ssl-1.3.24.2+1.47/build-tree/apache_1.3.24/src/include/httpd.h Wed May 8 10:01:57 2002
+++ apache-ssl-1.3.24.3+1.48/build-tree/apache_1.3.24/src/include/httpd.h Wed May 8 10:01:15 2002
@@ -158,6 +158,10 @@
#define DEFAULT_HTTP_PORT 80
#define DEFAULT_HTTPS_PORT 443
#define ap_is_default_port(port,r) ((port) == ap_default_port(r))
+#ifdef EAPI
+#define ap_http_method(r) (((r)->ctx != NULL && ap_ctx_get((r)->ctx, "ap::http::method") != NULL) ? ((char *)ap_ctx_get((r)->ctx, "ap::http::method")) : "http")
+#define ap_default_port(r) (((r)->ctx != NULL && ap_ctx_get((r)->ctx, "ap::default::port") != NULL) ? atoi((char *)ap_ctx_get((r)->ctx, "ap::default::port")) : DEFAULT_HTTP_PORT)
+#else /* EAPI */
#ifdef NETWARE
#define ap_http_method(r) ap_os_http_method(r)
#define ap_default_port(r) DEFAULT_HTTP_PORT
@@ -166,15 +170,11 @@
# define ap_http_method(r) ((r)->connection->client->ssl ? "https" : "http")
# define ap_default_port(r) ((r)->connection->client->ssl ? DEFAULT_HTTPS_PORT : DEFAULT_HTTP_PORT)
# else
-#ifdef EAPI
-#define ap_http_method(r) (((r)->ctx != NULL && ap_ctx_get((r)->ctx, "ap::http::method") != NULL) ? ((char *)ap_ctx_get((r)->ctx, "ap::http::method")) : "http")
-#define ap_default_port(r) (((r)->ctx != NULL && ap_ctx_get((r)->ctx, "ap::default::port") != NULL) ? atoi((char *)ap_ctx_get((r)->ctx, "ap::default::port")) : DEFAULT_HTTP_PORT)
-#else /* EAPI */
# define ap_http_method(r) "http"
# define ap_default_port(r) DEFAULT_HTTP_PORT
-#endif /* EAPI */
# endif
#endif
+#endif /* EAPI */
============================relevant diff=======================
--
Always use GPG for privacy; finger -l kapil@imsc.ernet.in or
http://www.imsc.ernet.in/~kapil/gpg.html for my Public Key.
------------------------------------------------------------------
768D/FED1D08D 2000-02-19 Kapil Hari Paranjape <kapil@imsc.ernet.in>
1024g/CECEB39B 2000-02-19 Kapil Hari Paranjape <kapil@imsc.ernet.in>
Key fingerprint = B6D2 F4F2 A37C B887 DFA2 9100 5F22 0D1D FED1 D08D
--
--
To UNSUBSCRIBE, email to debian-apache-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: