diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-01-10 23:36:29 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-01-10 23:36:29 +0000 |
commit | 441b9dd255ed67ea78467135266d225964ad7041 (patch) | |
tree | b49dab50fed2b2c6e11f6f652048e2edfd79bd65 /protocols/twitter/twitter_lib.c | |
parent | ac36463cce01e4c7a9c48a96dcd3fe37d1c89dc8 (diff) |
Don't handle HTTP 401 responses from Twitter API differently anymore after
initial login. This fixes issues with Twitter's intermittent authentication
failures. (Bug #893)
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
-rw-r--r-- | protocols/twitter/twitter_lib.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 05990cc1..db1192ce 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -886,10 +886,6 @@ static void twitter_http_get_home_timeline(struct http_request *req) td->http_fails = 0; if (!(ic->flags & OPT_LOGGED_IN)) imcb_connected(ic); - } else if (req->status_code == 401) { - imcb_error(ic, "Authentication failure"); - imc_logout(ic, FALSE); - return; } else { // It didn't go well, output the error and return. if (++td->http_fails >= 5) @@ -938,10 +934,6 @@ static void twitter_http_get_mentions(struct http_request *req) td->http_fails = 0; if (!(ic->flags & OPT_LOGGED_IN)) imcb_connected(ic); - } else if (req->status_code == 401) { - imcb_error(ic, "Authentication failure"); - imc_logout(ic, FALSE); - return; } else { // It didn't go well, output the error and return. if (++td->http_fails >= 5) |