From faf21ce438fa84b04c39457a8d3fe47113311bb7 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 13 Apr 2018 09:42:28 -0400 Subject: [PATCH] [locale] Log GeoIP attempt URL, use possibly-modified form --- src/modules/locale/LocaleViewStep.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/locale/LocaleViewStep.cpp b/src/modules/locale/LocaleViewStep.cpp index f3a887963..ce01df2df 100644 --- a/src/modules/locale/LocaleViewStep.cpp +++ b/src/modules/locale/LocaleViewStep.cpp @@ -122,7 +122,7 @@ LocaleViewStep::fetchGeoIpTimezone() if ( m_geoipStyle.isEmpty() || m_geoipStyle == "legacy" ) { - actualUrl.append( "/json" ); + actualUrl.append( "/json/" ); handler = new FreeGeoIP; } else if ( m_geoipStyle == "json" ) @@ -141,6 +141,7 @@ LocaleViewStep::fetchGeoIpTimezone() setUpPage(); return; } + cDebug() << "Fetching GeoIP data from" << actualUrl; QNetworkAccessManager *manager = new QNetworkAccessManager( this ); connect( manager, &QNetworkAccessManager::finished, @@ -161,7 +162,7 @@ LocaleViewStep::fetchGeoIpTimezone() } ); QNetworkRequest request; - request.setUrl( QUrl::fromUserInput( m_geoipUrl ) ); + request.setUrl( QUrl::fromUserInput( actualUrl ) ); request.setAttribute( QNetworkRequest::FollowRedirectsAttribute, true ); manager->get( request ); }