[QGIS Commit] r9842 - branches/Version-1_0/src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Dec 17 18:48:17 EST 2008
Author: jef
Date: 2008-12-17 18:48:17 -0500 (Wed, 17 Dec 2008)
New Revision: 9842
Modified:
branches/Version-1_0/src/core/qgshttptransaction.cpp
Log:
apply r9841 from trunk
Modified: branches/Version-1_0/src/core/qgshttptransaction.cpp
===================================================================
--- branches/Version-1_0/src/core/qgshttptransaction.cpp 2008-12-17 23:45:12 UTC (rev 9841)
+++ branches/Version-1_0/src/core/qgshttptransaction.cpp 2008-12-17 23:48:17 UTC (rev 9842)
@@ -82,7 +82,14 @@
// Create a header so we can set the user agent (Per WMS RFC).
QHttpRequestHeader header( "GET", qurl.host() );
// Set host in the header
- header.setValue( "Host", qurl.host() );
+ if( qurl.port( HTTP_PORT_DEFAULT ) == HTTP_PORT_DEFAULT )
+ {
+ header.setValue( "Host", qurl.host() );
+ }
+ else
+ {
+ header.setValue( "Host", QString( "%1:%2" ).arg( qurl.host() ).arg( qurl.port() ) );
+ }
// Set the user agent to Quantum GIS plus the version name
header.setValue( "User-agent", QString( "Quantum GIS - " ) + VERSION );
// Set the host in the QHttp object
More information about the QGIS-commit
mailing list