[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 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
|
static QString
|
||||||
@ -125,7 +127,9 @@ do_raw_query( Handler::Type type, const QString& url, const QString& selector )
|
|||||||
return QString();
|
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
|
RegionZonePair
|
||||||
|
Loading…
Reference in New Issue
Block a user