You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/06/01 07:14:07 UTC

cvs commit: ws-axis/c/src/transport/axis3 URL.cpp

samisa      2005/05/31 22:14:07

  Modified:    c/src/transport/axis3 URL.cpp
  Log:
  Fixed the bug with the host name not being updating when setting a new URL
  
  Revision  Changes    Path
  1.5       +3 -3      ws-axis/c/src/transport/axis3/URL.cpp
  
  Index: URL.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis3/URL.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- URL.cpp	23 Mar 2005 15:45:03 -0000	1.4
  +++ URL.cpp	1 Jun 2005 05:14:07 -0000	1.5
  @@ -128,7 +128,7 @@
               {
                   if(pos == std::string::npos) /* only host name found */
                   {
  -                    if(m_Host.empty())
  +                    //if(m_Host.empty())
                           m_Host = url;
                       if (key == "?") /* found path */
                           m_Path = url.substr(begpos - 1);
  @@ -140,7 +140,7 @@
                   switch(url.at(pos))
                   {
                       case ':': 
  -                        if(m_Host.empty())
  +                        //if(m_Host.empty())
                               m_Host = url.substr(begpos, pos - begpos);
                           pos++;
                           begpos = pos;
  @@ -153,7 +153,7 @@
                           {
                               m_Port = atoi(url.substr(begpos, 
                                   pos - begpos + 1).c_str());
  -                            if(m_Host.empty())
  +                            //if(m_Host.empty())
                                   m_Host = url.substr(0, begpos - 1);
                           }
                           else