default port based on the request method. This fixes a problem with URL
reconstruction on a redirect.
Submitted by: Pavel Novy (novy@feld.cvut.cz)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@97821
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 1.3.28
+ *) NetWare: implemented ap_os_default_port() to resolve the
+ correct default port based on the request method. This fixes
+ a URL reconstruction problem on a redirect.
+ [Pavel Novy (novy@feld.cvut.cz)]
+
*) Added new ap_register_cleanup_ex() API function which allows
for a "magic" cleanup function to be run at register time
rather than at cleanup time. Also added the
#define DEFAULT_HTTPS_PORT 443
#define ap_is_default_port(port,r) ((port) == ap_default_port(r))
#ifdef NETWARE
-#define ap_http_method(r) ap_os_http_method(r)
+#define ap_http_method(r) ap_os_http_method((void*)r)
+#define ap_default_port(r) ap_os_default_port((void*)r)
#else
#define ap_http_method(r) "http"
-#endif
#define ap_default_port(r) DEFAULT_HTTP_PORT
+#endif
/* --------- Default user name and group name running standalone ---------- */
/* --- These may be specified as numbers by placing a # before a number --- */
ap_os_canonical_filename,
ap_os_case_canonical_filename,
ap_os_http_method,
+ ap_os_default_port,
os_readdir,
os_opendir,
os_closedir,
if (optParam & (SO_SSL_ENABLE | SO_SSL_SERVER)) return "https";
return "http";
}
+
+unsigned short ap_os_default_port(void *r)
+{
+ return ap_default_port_for_scheme(ap_os_http_method(r));
+}
void init_name_space(void);
int ap_os_is_filename_valid(const char *file);
char *ap_os_http_method(void *r);
+unsigned short ap_os_default_port(void *r);
#endif /*! APACHE_OS_H*/