diff options
| author | Dan Winship <danw@gnome.org> | 2009-06-01 21:37:55 -0400 |
|---|---|---|
| committer | Dan Winship <danw@gnome.org> | 2009-06-01 21:37:55 -0400 |
| commit | 3dcdf7f79c319a3f392ffef3f26cde025e3a88f3 (patch) | |
| tree | 0643e8a51b14ee48f017989d6ab250062a8c62ff | |
| parent | 6f83c54ace907af054133355d28d074b6b7910a0 (diff) | |
| download | libsoup-3dcdf7f79c319a3f392ffef3f26cde025e3a88f3.tar.gz | |
Include the (optional) algorithm param in Digest auth responses
Apple's CalDAV server apparently considers it mandatory.
http://bugzilla.gnome.org/show_bug.cgi?id=583091
| -rw-r--r-- | libsoup/soup-auth-digest.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libsoup/soup-auth-digest.c b/libsoup/soup-auth-digest.c index 665bac76..4fb3f815 100644 --- a/libsoup/soup-auth-digest.c +++ b/libsoup/soup-auth-digest.c @@ -421,7 +421,7 @@ get_authorization (SoupAuth *auth, SoupMessage *msg) { SoupAuthDigestPrivate *priv = SOUP_AUTH_DIGEST_GET_PRIVATE (auth); char response[33], *token; - char *url; + char *url, *algorithm; GString *out; SoupURI *uri; @@ -444,6 +444,10 @@ get_authorization (SoupAuth *auth, SoupMessage *msg) g_string_append (out, ", "); soup_header_g_string_append_param (out, "uri", url); g_string_append (out, ", "); + algorithm = soup_auth_digest_get_algorithm (priv->algorithm); + soup_header_g_string_append_param (out, "algorithm", algorithm); + g_free (algorithm); + g_string_append (out, ", "); soup_header_g_string_append_param (out, "response", response); if (priv->opaque) { |
