Project

General

Profile

0001-switch-openstreetmap-request-to-https-and-make-curl-.patch

jean-luc Le Corre, 09/03/2018 11:07 AM

View differences:

src/libs/location.c
343 343
  clear_search(lib);
344 344

  
345 345
  /* build the query url */
346
  query = dt_util_dstrcat(query, "http://nominatim.openstreetmap.org/search/%s?format=xml&limit=%d&polygon_text=1", text,
346
  query = dt_util_dstrcat(query, "https://nominatim.openstreetmap.org/search/%s?format=xml&limit=%d&polygon_text=1", text,
347 347
                          LIMIT_RESULT);
348 348
  /* load url */
349 349
  curl = curl_easy_init();
......
354 354
  curl_easy_setopt(curl, CURLOPT_WRITEDATA, lib);
355 355
  curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _lib_location_curl_write_data);
356 356
  curl_easy_setopt(curl, CURLOPT_USERAGENT, (char *)darktable_package_string);
357
  curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
358
  curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
357 359

  
358 360
  res = curl_easy_perform(curl);
359 361
  if(res != 0) goto bail_out;
360
- 
Go to top