mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-26 16:34:23 +02:00
Added support for custom HTTP headers in map tile requests
This commit is contained in:
@ -64,7 +64,7 @@ bool DEMLoader::loadTiles(const RectC &rect)
|
||||
}
|
||||
}
|
||||
|
||||
return _downloader->get(dl, _authorization);
|
||||
return _downloader->get(dl, _headers);
|
||||
}
|
||||
|
||||
bool DEMLoader::checkTiles(const RectC &rect) const
|
||||
@ -97,3 +97,11 @@ QString DEMLoader::tileFile(const DEM::Tile &tile) const
|
||||
{
|
||||
return _dir.absoluteFilePath(tile.baseName());
|
||||
}
|
||||
|
||||
void DEMLoader::setAuthorization(const Authorization &authorization)
|
||||
{
|
||||
QList<HTTPHeader> headers;
|
||||
if (!authorization.isNull())
|
||||
headers.append(authorization.header());
|
||||
_headers = headers;
|
||||
}
|
||||
|
Reference in New Issue
Block a user