Skip to content

Commit

Permalink
Cope with an explicit port in the url.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5356 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 24, 2006
1 parent 92eb209 commit 639f9a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/providers/wms/qgshttptransaction.cpp
Original file line number Diff line number Diff line change
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 639f9a0

Please sign in to comment.