diff options
author | Milo Kerr <mkerrdev@gmail.com> | 2021-03-25 01:45:43 -0400 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-06-17 05:04:15 +0200 |
commit | 492c629e2a24151f7e66033b43caf6a46bef3880 (patch) | |
tree | 370a46438b0d1f43a83823c635d5496a1b181c2c /src/plugins/geoservices/esri/placemanagerengine_esri.cpp | |
parent | 9bd3b391105d7ac4c1f620f1129c6a73f21c289d (diff) | |
download | qtlocation-492c629e2a24151f7e66033b43caf6a46bef3880.tar.gz |
Update use of HTTP to HTTPS in esri plugin
When accessed via HTTP, the arcgis.com endpoints return:
{"error":{"code":400,"message":"HTTP not supported","details":[]}}
With this change the esri plugin now accesses them via HTTPS.
[ChangeLog][plugins][esri]
Pick-to: 5.15
Fixes: QTBUG-92111
Change-Id: I7be0295f8c65853ab214bc11d7e6008f3137403a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: Guillaume Belz <gbelz@esri.com>
Diffstat (limited to 'src/plugins/geoservices/esri/placemanagerengine_esri.cpp')
-rw-r--r-- | src/plugins/geoservices/esri/placemanagerengine_esri.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/geoservices/esri/placemanagerengine_esri.cpp b/src/plugins/geoservices/esri/placemanagerengine_esri.cpp index 4152a268..8f1e7dbc 100644 --- a/src/plugins/geoservices/esri/placemanagerengine_esri.cpp +++ b/src/plugins/geoservices/esri/placemanagerengine_esri.cpp @@ -63,8 +63,10 @@ static const QString kCountriesKey(QStringLiteral("detailedCountries")); static const QString kLocalizedNamesKey(QStringLiteral("localizedNames")); static const QString kMaxLocationsKey(QStringLiteral("maxLocations")); -static const QUrl kUrlGeocodeServer("http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer?f=pjson"); -static const QUrl kUrlFindAddressCandidates("http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates"); +static const QUrl kUrlGeocodeServer( + "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer?f=pjson"); +static const QUrl kUrlFindAddressCandidates("https://geocode.arcgis.com/arcgis/rest/services/World/" + "GeocodeServer/findAddressCandidates"); PlaceManagerEngineEsri::PlaceManagerEngineEsri(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) : |