[libsoup] Fix previous commit
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Fix previous commit
- Date: Sun, 6 Jan 2013 21:39:55 +0000 (UTC)
commit 0cb3c8293b37ade115118096298b002a7a9f7c9c
Author: Dan Winship <danw gnome org>
Date: Sun Jan 6 16:38:30 2013 -0500
Fix previous commit
libsoup/soup-session.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index ef8983f..1132479 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -3497,8 +3497,11 @@ static gboolean
expected_to_be_requeued (SoupSession *session, SoupMessage *msg)
{
if (msg->status_code == SOUP_STATUS_UNAUTHORIZED ||
- msg->status_code == SOUP_STATUS_PROXY_UNAUTHORIZED)
- return !soup_message_disables_feature (msg, SOUP_TYPE_AUTH_MANAGER);
+ msg->status_code == SOUP_STATUS_PROXY_UNAUTHORIZED) {
+ SoupSessionFeature *feature =
+ soup_session_get_feature (session, SOUP_TYPE_AUTH_MANAGER);
+ return !feature || !soup_message_disables_feature (msg, feature);
+ }
if (!(soup_message_get_flags (msg) & SOUP_MESSAGE_NO_REDIRECT))
return soup_session_would_redirect (session, msg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]