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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Oct 26 01:33:50 EDT 2008


Author: gsherman
Date: 2008-10-26 01:33:50 -0400 (Sun, 26 Oct 2008)
New Revision: 9550

Modified:
   trunk/qgis/src/core/qgshttptransaction.cpp
Log:
Cleaned up header setRequest (no functional change)


Modified: trunk/qgis/src/core/qgshttptransaction.cpp
===================================================================
--- trunk/qgis/src/core/qgshttptransaction.cpp	2008-10-26 05:23:50 UTC (rev 9549)
+++ trunk/qgis/src/core/qgshttptransaction.cpp	2008-10-26 05:33:50 UTC (rev 9550)
@@ -116,19 +116,19 @@
   // 
   // gsherman 2008-10-24 - Not sure if the above still holds true. Commenting
   // out the removal for testing purposes
-  QString pathAndQuery = httpurl;//.remove( 0,
-                                  //       httpurl.indexOf( qurl.path() ) );
+  // QString pathAndQuery = httpurl.remove( 0,
+  //                                       httpurl.indexOf( qurl.path() ) );
 
 
   if ( !postData ) //do request with HTTP GET
   {
-    header.setRequest("GET", pathAndQuery);
+    header.setRequest("GET", httpurl);
     // do GET using header containing user-agent
     httpid = http->request(header); 
   }
   else //do request with HTTP POST
   {
-    header.setRequest("POST", pathAndQuery);
+    header.setRequest("POST", httpurl);
     // do POST using header containing user-agent
     httpid = http->request(header, *postData); 
   }



More information about the QGIS-commit mailing list