Skip to content
Permalink
Browse files

Applied patch to fix bug #1733

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11071 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jul 15, 2009
1 parent c6bb6b7 commit 9f25c532249aea8b302c8d1740ac1f825044c694
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgshttptransaction.cpp
@@ -133,9 +133,9 @@ bool QgsHttpTransaction::getSynchronously( QByteArray &respondedContent, int red
// 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 );

0 comments on commit 9f25c53

Please sign in to comment.
You can’t perform that action at this time.