[locale] Log GeoIP attempt URL, use possibly-modified form
This commit is contained in:
parent
d6f082752d
commit
ec113e3df3
@ -123,7 +123,7 @@ LocaleViewStep::fetchGeoIpTimezone()
|
||||
|
||||
if ( m_geoipStyle.isEmpty() || m_geoipStyle == "legacy" )
|
||||
{
|
||||
actualUrl.append( "/json" );
|
||||
actualUrl.append( "/json/" );
|
||||
handler = new FreeGeoIP;
|
||||
}
|
||||
else if ( m_geoipStyle == "json" )
|
||||
@ -142,6 +142,7 @@ LocaleViewStep::fetchGeoIpTimezone()
|
||||
setUpPage();
|
||||
return;
|
||||
}
|
||||
cDebug() << "Fetching GeoIP data from" << actualUrl;
|
||||
|
||||
QNetworkAccessManager *manager = new QNetworkAccessManager( this );
|
||||
connect( manager, &QNetworkAccessManager::finished,
|
||||
@ -162,7 +163,7 @@ LocaleViewStep::fetchGeoIpTimezone()
|
||||
} );
|
||||
|
||||
QNetworkRequest request;
|
||||
request.setUrl( QUrl::fromUserInput( m_geoipUrl ) );
|
||||
request.setUrl( QUrl::fromUserInput( actualUrl ) );
|
||||
request.setAttribute( QNetworkRequest::FollowRedirectsAttribute, true );
|
||||
manager->get( request );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user