From 161b8f90ce12a576bc7a46a8a274625923613e5d Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Thu, 6 Jul 2017 16:48:17 +0200 Subject: http: Migrate to new LibSoup API --- CMakeScripts/DefineDependsandFlags.cmake | 2 +- src/io/http.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index 79944309a..6d87846e9 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -47,7 +47,7 @@ pkg_check_modules(INKSCAPE_DEP REQUIRED fontconfig gsl gmodule-2.0 - libsoup-2.4) + libsoup-2.4 >= 2.42) list(APPEND INKSCAPE_LIBS ${INKSCAPE_DEP_LDFLAGS}) list(APPEND INKSCAPE_INCS_SYS ${INKSCAPE_DEP_INCLUDE_DIRS}) diff --git a/src/io/http.cpp b/src/io/http.cpp index 657e6ac6a..dfaa59a31 100644 --- a/src/io/http.cpp +++ b/src/io/http.cpp @@ -125,7 +125,7 @@ Glib::ustring get_file(Glib::ustring uri, uint timeout, callback func) { // Only then do we get the http request SoupMessage *msg = soup_message_new_from_uri("GET", s_uri); - SoupSession *session = soup_session_sync_new(); + SoupSession *session = soup_session_new(); #ifdef DEBUG_HTTP SoupLogger *logger; -- cgit v1.2.3