Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cope with an explicit port in the url.
git-svn-id: http://svn.osgeo.org/qgis/trunk@5356 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 24, 2006
1 parent 7141779 commit 8784ca4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/providers/wms/qgshttptransaction.cpp
Expand Up @@ -112,10 +112,11 @@ bool QgsHttpTransaction::getSynchronously(QByteArray &respondedContent, int redi
httpresponse.truncate(0);

// Some WMS servers don't like receiving a http request that
// includes the scheme and host (the http://www.address.bit), so
// remove that from the url before executing an http GET.
// includes the scheme, host and port (the
// http://www.address.bit:80), so remove that from the url before
// executing an http GET.
QString pathAndQuery = httpurl.remove(0,
httpurl.indexOf(qurl.host()) + qurl.host().count());
httpurl.indexOf(qurl.path()));
httpid = http->get( pathAndQuery );

connect(http, SIGNAL( requestStarted ( int ) ),
Expand Down

0 comments on commit 8784ca4

Please sign in to comment.