~ubuntu-branches/ubuntu/utopic/gnome-online-accounts/utopic

« back to all changes in this revision

Viewing changes to src/goabackend/goahttpclient.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Laurent Bigonville, Andreas Henriksson
  • Date: 2014-05-16 11:42:52 UTC
  • mfrom: (1.1.28) (0.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20140516114252-u5ect6mk6ht8i38x
Tags: 3.12.2-1
[ Laurent Bigonville ]
* debian/control.in: Recommends realmd package (Closes: #725965)

[ Andreas Henriksson ]
* New upstream release.
  - Removes chat support from Windows Live provider (XMPP gateway gone).
* Bump Standards-Version to 3.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2
2
/*
3
 
 * Copyright (C) 2012, 2013 Red Hat, Inc.
 
3
 * Copyright (C) 2012, 2013, 2014 Red Hat, Inc.
4
4
 *
5
5
 * This library is free software; you can redistribute it and/or
6
6
 * modify it under the terms of the GNU Lesser General Public
13
13
 * Lesser General Public License for more details.
14
14
 *
15
15
 * You should have received a copy of the GNU Lesser General
16
 
 * Public License along with this library; if not, write to the
17
 
 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18
 
 * Boston, MA 02111-1307, USA.
 
16
 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19
17
 *
20
18
 * Author: Debarshi Ray <debarshir@gnome.org>
21
19
 */
26
24
 
27
25
#include <libsoup/soup.h>
28
26
 
29
 
#include "goalogging.h"
30
27
#include "goahttpclient.h"
31
28
#include "goautils.h"
32
29
 
172
169
      g_set_error (&error,
173
170
                   GOA_ERROR,
174
171
                   GOA_ERROR_FAILED, /* TODO: more specific */
175
 
                   _("Code: %u - Unexpected response from server"),
 
172
                   _("Code: %u — Unexpected response from server"),
176
173
                   msg->status_code);
177
174
      goto out;
178
175
    }
220
217
  SoupLogger *logger;
221
218
 
222
219
  g_return_if_fail (GOA_IS_HTTP_CLIENT (client));
223
 
  g_return_if_fail (uri != NULL || uri[0] != '\0');
224
 
  g_return_if_fail (username != NULL || username[0] != '\0');
225
 
  g_return_if_fail (password != NULL || password[0] != '\0');
 
220
  g_return_if_fail (uri != NULL && uri[0] != '\0');
 
221
  g_return_if_fail (username != NULL && username[0] != '\0');
 
222
  g_return_if_fail (password != NULL && password[0] != '\0');
226
223
  g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
227
224
 
228
225
  data = g_slice_new0 (CheckData);