]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Implemented ap_os_default_port() to allow NetWare to resolve the correct
authorBradley Nicholes <bnicholes@apache.org>
Mon, 9 Dec 2002 17:23:58 +0000 (17:23 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Mon, 9 Dec 2002 17:23:58 +0000 (17:23 +0000)
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

src/CHANGES
src/include/httpd.h
src/os/netware/ApacheCore.imp
src/os/netware/os.c
src/os/netware/os.h

index 6d561273bf36be46b6a7ec2d255496c21fe03eac..e795f8000de53b65d3601a23af784347250c72dc 100644 (file)
@@ -1,5 +1,10 @@
 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
index 4815ece072645b3684688bf7defe9a8efc797015..9a5ffc707d1a4bc2da0c0173faed8118e51a3cca 100644 (file)
@@ -142,11 +142,12 @@ extern "C" {
 #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 --- */
index 2e70a60aa900cc622c4dcd613f3016df5cf91365..8906c650fc533cde713ba93c51b9e81c6cdb7153 100644 (file)
  ap_os_canonical_filename,
  ap_os_case_canonical_filename,
  ap_os_http_method,
+ ap_os_default_port,
  os_readdir,
  os_opendir,
  os_closedir,
index bae4b0dc278b08941343618e8f5d79f23bf3af22..054d9793dfddabb9438df5324f3bc6bd83db97dd 100644 (file)
@@ -502,3 +502,8 @@ char *ap_os_http_method(void *r)
         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));
+}
index be95fe7b12ef812dc103a75815f4f6a4a19b1a95..7b0c46359322ca7248b3e1a6236ab7b37d5bb4b7 100644 (file)
@@ -186,5 +186,6 @@ char *bslash2slash(char*);
 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*/