Skip to content
Permalink
Browse files

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
mhugent committed Jul 15, 2009
1 parent 3925ac0 commit 3f3743bd9ffd70c92f1e06d294f0b99e8e2d62a8
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 3f3743b

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