httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_info.c
Date Tue, 07 May 2002 23:41:37 GMT
bnicholes    02/05/07 16:41:37

  Modified:    modules/generators mod_info.c
  Log:
  Use the ap_get_server_xxx() calls to return the info rather than short cutting it with the
server_rec.  This avoids port showing up as 0 and also respects the UseCanonicalName setting
in the .conf file.
  
  Revision  Changes    Path
  1.47      +1 -1      httpd-2.0/modules/generators/mod_info.c
  
  Index: mod_info.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_info.c,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- mod_info.c	7 May 2002 13:53:17 -0000	1.46
  +++ mod_info.c	7 May 2002 23:41:36 -0000	1.47
  @@ -391,7 +391,7 @@
                           MODULE_MAGIC_NUMBER_MAJOR, MODULE_MAGIC_NUMBER_MINOR);
               ap_rprintf(r, "<dt><strong>Hostname/port:</strong> "
                           "<tt>%s:%u</tt></dt>\n",
  -                        serv->server_hostname, serv->port);
  +                        ap_get_server_name(r), ap_get_server_port(r));
               ap_rprintf(r, "<dt><strong>Timeouts:</strong> "
                           "<tt>connection: %d &nbsp;&nbsp; "
                           "keep-alive: %d</tt></dt>",
  
  
  

Mime
View raw message