diff options
author | Dan Winship <danw@gnome.org> | 2013-01-06 16:38:30 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-01-06 16:38:30 -0500 |
commit | 0cb3c8293b37ade115118096298b002a7a9f7c9c (patch) | |
tree | f018b899ad030ed7c43a712b1198f4bc600073f5 | |
parent | 08ff6d1d2124565b10c0b22b17769bf91fc6d5c2 (diff) | |
download | libsoup-0cb3c8293b37ade115118096298b002a7a9f7c9c.tar.gz libsoup-0cb3c8293b37ade115118096298b002a7a9f7c9c.tar.bz2 libsoup-0cb3c8293b37ade115118096298b002a7a9f7c9c.zip |
Fix previous commit
-rw-r--r-- | 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 ef8983fb..1132479d 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); |