httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject cvs commit: httpd-proxy/module-2.0 proxy_http.c
Date Sat, 07 Apr 2001 12:24:39 GMT
minfrin     01/04/07 05:24:39

  Modified:    module-2.0 proxy_http.c
  Log:
  Fixed problem where the port was left at zero on requests instead of
  being set to the default scheme port 80
  
  Revision  Changes    Path
  1.45      +3 -0      httpd-proxy/module-2.0/proxy_http.c
  
  Index: proxy_http.c
  ===================================================================
  RCS file: /home/cvs/httpd-proxy/module-2.0/proxy_http.c,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- proxy_http.c	2001/04/06 14:25:53	1.44
  +++ proxy_http.c	2001/04/07 12:24:38	1.45
  @@ -204,6 +204,9 @@
   	return ap_proxyerror(r, HTTP_BAD_REQUEST,
   			     apr_pstrcat(p,"URI cannot be parsed: ", url, NULL));
       }
  +    if (!uri.port) {
  +	uri.port = ap_default_port_for_scheme(uri.scheme);
  +    }
   
       ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
   		 "proxy: HTTP connecting %s to %s:%d", url, uri.hostname, uri.port);
  
  
  

Mime
View raw message