Skip to content

Commit

Permalink
Add http headers for Linux #1968
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Dec 11, 2024
1 parent c18ac2e commit 7622535
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/geotools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "'..."))
Expand Down

0 comments on commit 7622535

Please sign in to comment.