Skip to content

Commit 3f3743b

Browse files
author
mhugent
committed
Applied patch to fix bug #1733
git-svn-id: http://svn.osgeo.org/qgis/trunk@11071 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3925ac0 commit 3f3743b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/qgshttptransaction.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ bool QgsHttpTransaction::getSynchronously( QByteArray &respondedContent, int red
133133
// http://www.address.bit:80), so remove that from the url before
134134
// executing an http GET.
135135

136-
QString pathAndQuery = httpurl.remove( 0, httpurl.indexOf( qurl.path() ) );
137-
138-
136+
//Path could be just '/' so we remove the 'http://' first
137+
QString pathAndQuery = httpurl.remove( 0, httpurl.indexOf( qurl.host() ) );
138+
pathAndQuery = httpurl.remove( 0, pathAndQuery.indexOf( qurl.path() ) );
139139
if ( !postData ) //do request with HTTP GET
140140
{
141141
header.setRequest( "GET", pathAndQuery );

0 commit comments

Comments
 (0)