~ubuntu-branches/ubuntu/jaunty/libsoup2.4/jaunty-proposed

« back to all changes in this revision

Viewing changes to libsoup/soup-auth-domain-basic.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-12-17 14:51:11 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20081217145111-sqbz10l57fmrh4vz
Tags: 2.25.4-0ubuntu1
* New upstream version
* debian/control.in:
  - build-depends on libgconf2-dev, libproxy-dev
* Updated to list the new libsoup-gnome binaries
* debian/rules:
  - updated shlibs version and list the new library

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#include <string.h>
13
13
 
14
14
#include "soup-auth-domain-basic.h"
 
15
#include "soup-headers.h"
15
16
#include "soup-marshal.h"
16
17
#include "soup-message.h"
17
18
 
308
309
static char *
309
310
challenge (SoupAuthDomain *domain, SoupMessage *msg)
310
311
{
311
 
        /* FIXME: if realm has '"'s or '\'s in it, need to escape them */
312
 
        return g_strdup_printf ("Basic realm=\"%s\"",
313
 
                                soup_auth_domain_get_realm (domain));
 
312
        GString *challenge;
 
313
 
 
314
        challenge = g_string_new ("Basic ");
 
315
        soup_header_g_string_append_param (challenge, "realm", soup_auth_domain_get_realm (domain));
 
316
        return g_string_free (challenge, FALSE);
314
317
}
315
318
 
316
319
static gboolean