Skip to content

Commit 064bcc7

Browse files
committed
Testing urdb curl updates for #1968
1 parent c96d4ca commit 064bcc7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/geotools.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ bool GeoTools::GeocodeDeveloper(const wxString& address, double* lat, double* lo
194194
url.Replace("&", "\\&");
195195
wxMessageBox(url, "updated geocode developer URL");
196196
*/
197-
curl.AddHttpHeader("Content-Type: application/json");
198-
curl.AddHttpHeader("Accept: application/json");
197+
// curl.AddHttpHeader("Content-Type: application/json");
198+
// curl.AddHttpHeader("Accept: application/json");
199199

200200

201201
if (showprogress) {

src/urdb.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4848
static wxString MyGet(const wxString &url)
4949
{
5050
wxEasyCurl curl;
51-
curl.AddHttpHeader( "Content-type: text/plain" );
51+
// curl.AddHttpHeader( "Content-type: text/plain" );
52+
// curl.AddHttpHeader( "Cache-Control: no-cache" );
5253
curl.AddHttpHeader( "Cache-Control: no-cache" );
54+
curl.AddHttpHeader("Content-Type: application/json");
55+
curl.AddHttpHeader("Accept: application/json");
56+
5357
curl.Get(url);
5458
return curl.GetDataAsString();
5559
}

0 commit comments

Comments
 (0)