[gnome-software/wip/iainl/ubuntu-xenial] Re-authenticate on 401 as well
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/iainl/ubuntu-xenial] Re-authenticate on 401 as well
- Date: Mon, 18 Apr 2016 19:02:20 +0000 (UTC)
commit 15ac19405c69e879ced28933eed26a816c2cf5f1
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]