Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Applied patch to fix bug #1733
git-svn-id: http://svn.osgeo.org/qgis/trunk@11071 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 15, 2009
1 parent 3925ac0 commit 3f3743b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/qgshttptransaction.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 3f3743b

Please sign in to comment.