Skip to content

Commit

Permalink
Added request initiator to two more cases in QgsLazInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Apr 23, 2023
1 parent f706d4e commit d8cca59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/pointcloud/qgslazinfo.cpp
Expand Up @@ -325,6 +325,7 @@ QgsLazInfo QgsLazInfo::fromUrl( QUrl &url )
// Fetch VLR data
{
QNetworkRequest nr( url );
QgsSetRequestInitiatorClass( nr, QStringLiteral( "QgsLazInfo" ) );
nr.setAttribute( QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::AlwaysNetwork );
nr.setAttribute( QNetworkRequest::CacheSaveControlAttribute, false );
uint32_t firstVlrOffset = lazInfo.firstVariableLengthRecord();
Expand All @@ -351,6 +352,7 @@ QgsLazInfo QgsLazInfo::fromUrl( QUrl &url )
bool QgsLazInfo::supportsRangeQueries( QUrl &url )
{
QNetworkRequest nr( url );
QgsSetRequestInitiatorClass( nr, QStringLiteral( "QgsLazInfo" ) );
nr.setAttribute( QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::AlwaysNetwork );
nr.setAttribute( QNetworkRequest::CacheSaveControlAttribute, false );
nr.setRawHeader( "Range", "bytes=0-0" );
Expand Down

0 comments on commit d8cca59

Please sign in to comment.