[libcalamares] Do GeoIP lookups with a fake User-Agent
This commit is contained in:
parent
3b14e354b0
commit
81f12cb230
@ -113,7 +113,9 @@ do_query( Handler::Type type, const QString& url, const QString& selector )
|
||||
return RegionZonePair();
|
||||
}
|
||||
|
||||
return interface->processReply( CalamaresUtils::Network::Manager::instance().synchronousGet( url ) );
|
||||
using namespace CalamaresUtils::Network;
|
||||
return interface->processReply(
|
||||
CalamaresUtils::Network::Manager::instance().synchronousGet( url, { RequestOptions::FakeUserAgent } ) );
|
||||
}
|
||||
|
||||
static QString
|
||||
@ -125,7 +127,9 @@ do_raw_query( Handler::Type type, const QString& url, const QString& selector )
|
||||
return QString();
|
||||
}
|
||||
|
||||
return interface->rawReply( CalamaresUtils::Network::Manager::instance().synchronousGet( url ) );
|
||||
using namespace CalamaresUtils::Network;
|
||||
return interface->rawReply(
|
||||
CalamaresUtils::Network::Manager::instance().synchronousGet( url, { RequestOptions::FakeUserAgent } ) );
|
||||
}
|
||||
|
||||
RegionZonePair
|
||||
|
Loading…
Reference in New Issue
Block a user