telepathy-salut: Stop using deprecated libsoup function

Xavier Claessens xclaesse at kemper.freedesktop.org
Thu Sep 19 08:10:05 PDT 2013


Module: telepathy-salut
Branch: master
Commit: 2958c1d4fc6f5e8a19206925f45805fb051009f2
URL:    http://cgit.freedesktop.org/telepathy/telepathy-salut/commit/?id=2958c1d4fc6f5e8a19206925f45805fb051009f2

Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date:   Tue Sep 17 12:30:55 2013 -0400

Stop using deprecated libsoup function

---

 configure.ac                          |    2 +-
 lib/gibber/gibber-oob-file-transfer.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 97422cb..c9e01d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -252,7 +252,7 @@ AS_IF([test x$with_backend = xno],
 ])
 
 dnl Check for libsoup
-PKG_CHECK_MODULES(LIBSOUP, [libsoup-2.4 >= 2.24])
+PKG_CHECK_MODULES(LIBSOUP, [libsoup-2.4 >= 2.26.1])
 AC_SUBST(LIBSOUP_CFLAGS)
 AC_SUBST(LIBSOUP_LIBS)
 AC_DEFINE([SOUP_VERSION_MIN_REQUIRED], [SOUP_VERSION_2_24], [Ignore post 2.24 deprecations])
diff --git a/lib/gibber/gibber-oob-file-transfer.c b/lib/gibber/gibber-oob-file-transfer.c
index 23c2bff..d2026d2 100644
--- a/lib/gibber/gibber-oob-file-transfer.c
+++ b/lib/gibber/gibber-oob-file-transfer.c
@@ -722,7 +722,7 @@ http_server_cb (SoupServer *server,
 
   /* iChat accepts only AppleSingle encoding, i.e. file's contents and
    * attributes are stored in the same stream */
-  accept_encoding = soup_message_headers_get (msg->request_headers,
+  accept_encoding = soup_message_headers_get_one (msg->request_headers,
       "Accept-Encoding");
   if (accept_encoding != NULL && strcmp (accept_encoding, "AppleSingle") == 0)
     {



More information about the telepathy-commits mailing list