Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix wms autorization logic
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+1
−1
src/core/qgsdatasourceuri.cpp
-
+1
−1
src/providers/wms/qgswmscapabilities.h
|
@@ -635,7 +635,7 @@ void QgsDataSourceUri::setEncodedUri( const QByteArray &uri ) |
|
|
mAuthConfigId.clear(); |
|
|
|
|
|
QUrl url; |
|
|
url.setQuery( QString::fromUtf8( uri ) ); |
|
|
url.setQuery( QString::fromLatin1( uri ) ); |
|
|
const QUrlQuery query( url ); |
|
|
|
|
|
const auto constQueryItems = query.queryItems( QUrl::ComponentFormattingOption::FullyDecoded ); |
|
|
|
@@ -764,7 +764,7 @@ struct QgsWmsAuthorization |
|
|
} |
|
|
else if ( !mUserName.isEmpty() || !mPassword.isEmpty() ) |
|
|
{ |
|
|
request.setRawHeader( "Authorization", "Basic " + QStringLiteral( "%1:%2" ).arg( mUserName, mPassword ).toLatin1().toBase64() ); |
|
|
request.setRawHeader( "Authorization", "Basic " + QStringLiteral( "%1:%2" ).arg( mUserName, mPassword ).toUtf8().toBase64() ); |
|
|
} |
|
|
|
|
|
if ( !mReferer.isEmpty() ) |
|
|