Skip to content

Commit

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

Please sign in to comment.