[QGIS Commit] r11071 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Jul 15 01:03:37 EDT 2009


Author: mhugent
Date: 2009-07-15 01:03:36 -0400 (Wed, 15 Jul 2009)
New Revision: 11071

Modified:
   trunk/qgis/src/core/qgshttptransaction.cpp
Log:
Applied patch to fix bug #1733

Modified: trunk/qgis/src/core/qgshttptransaction.cpp
===================================================================
--- trunk/qgis/src/core/qgshttptransaction.cpp	2009-07-14 14:39:39 UTC (rev 11070)
+++ trunk/qgis/src/core/qgshttptransaction.cpp	2009-07-15 05:03:36 UTC (rev 11071)
@@ -133,9 +133,9 @@
   // http://www.address.bit:80), so remove that from the url before
   // executing an http GET.
 
-  QString pathAndQuery = httpurl.remove( 0, httpurl.indexOf( qurl.path() ) );
-
-
+  //Path could be just '/' so we remove the 'http://' first
+  QString pathAndQuery = httpurl.remove( 0, httpurl.indexOf( qurl.host() ) );
+  pathAndQuery = httpurl.remove( 0, pathAndQuery.indexOf( qurl.path() ) );
   if ( !postData ) //do request with HTTP GET
   {
     header.setRequest( "GET", pathAndQuery );



More information about the QGIS-commit mailing list