diff options
author | Saurav Agarwalla <saurav.agarwalla92@gmail.com> | 2014-07-08 16:18:51 +0530 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2014-07-08 20:21:44 +0100 |
commit | 268397c7a3a033829cc413ef7329ab06f4594de6 (patch) | |
tree | 3c48405616a5405f1e56a587f4e0a05ec46400fc | |
parent | a0911084a0c198d75642856b3f1ecdd50f168921 (diff) | |
download | libgdata-268397c7a3a033829cc413ef7329ab06f4594de6.tar.gz |
core: Refresh authoriser on receiving SOUP_STATUS_NOT_FOUND
If the authorizer is not refreshed, PicasaWeb returns
SOUP_STATUS_NOT_FOUND when we try to access a resource. This shouldn't
be the case when the user is logged in.
https://bugzilla.gnome.org/show_bug.cgi?id=732890
-rw-r--r-- | gdata/gdata-service.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c index 61f959c0..78600e2f 100644 --- a/gdata/gdata-service.c +++ b/gdata/gdata-service.c @@ -739,7 +739,8 @@ _gdata_service_send_message (GDataService *self, SoupMessage *message, GCancella * Note that we have to re-process the message with the authoriser so that its authorisation headers get updated after the refresh * (bgo#653535). */ if (message->status_code == SOUP_STATUS_UNAUTHORIZED || - message->status_code == SOUP_STATUS_FORBIDDEN) { + message->status_code == SOUP_STATUS_FORBIDDEN || + message->status_code == SOUP_STATUS_NOT_FOUND) { GDataAuthorizer *authorizer = self->priv->authorizer; if (authorizer != NULL && gdata_authorizer_refresh_authorization (authorizer, cancellable, NULL) == TRUE) { |