[gnome-software/wip/temp/ubuntu-xenial-rebased: 275/329] Re-authenticate on 401 as well



commit f25d2000964abccebe1fd5f30433136a9ba873ef
Author: William Hua <william hua canonical com>
Date:   Mon Apr 18 14:52:58 2016 -0400

    Re-authenticate on 401 as well

 src/plugins/gs-ubuntu-snapd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-ubuntu-snapd.c b/src/plugins/gs-ubuntu-snapd.c
index f7b1088..049ffab 100644
--- a/src/plugins/gs-ubuntu-snapd.c
+++ b/src/plugins/gs-ubuntu-snapd.c
@@ -169,7 +169,7 @@ send_snapd_request (const gchar  *method,
        if (status_code != NULL)
                *status_code = code;
 
-       if ((code == 403 || code == 500) && retry_after_login) {
+       if ((code == 401 || code == 403 || code == 500) && retry_after_login) {
                g_socket_close (socket, NULL);
 
                gs_ubuntuone_clear_macaroon ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]