From 76225356966138c5a6013d230145801b1cbf73d5 Mon Sep 17 00:00:00 2001 From: Steven Janzou Date: Wed, 11 Dec 2024 03:42:40 -0700 Subject: [PATCH] Add http headers for Linux #1968 --- src/geotools.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/geotools.cpp b/src/geotools.cpp index 0eba5dacb..7671cc7ca 100644 --- a/src/geotools.cpp +++ b/src/geotools.cpp @@ -187,9 +187,14 @@ bool GeoTools::GeocodeDeveloper(const wxString& address, double* lat, double* lo wxBusyCursor curs; wxMessageBox(url, "geocode developer URL"); - // SAM issue 1968 + // SAM issue 1968 + /* works from command line and fails in curl.get with invalid key url.Replace("&", "\\&"); wxMessageBox(url, "updated geocode developer URL"); + */ + curl.AddHttpHeader("Content-Type: application/json"); + curl.AddHttpHeader("Accept: application/json"); + if (showprogress) { if (!curl.Get(url, "Geocoding address '" + address + "'..."))