1
0
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:
2023-05-13 15:01:35 +02:00
parent ddc7eb7149
commit d0cea97c90
17 changed files with 69 additions and 45 deletions

View File

@ -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;
}