[gnome-software/wip/temp/ubuntu-xenial-rebased: 272/326] Re-authenticate on 401 as well
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 272/326] Re-authenticate on 401 as well
- Date: Fri, 29 Apr 2016 10:10:13 +0000 (UTC)
commit 50ff1cd9e53459e7c83ef4eb0710b0ea8b077209
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]