From 17cffb811ee5dd109ab506ca7caf40ddacb6e9df Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Thu, 2 Sep 2010 18:23:13 +0100 Subject: [PATCH 1/2] Don't use curl for asynchronous requests This changes the order of the 'cond' section in oauth-url-retrieve so that it checks whether an asynchronous callback is passed before checking whether to use curl. When curl is used the request becomes synchronous and the callback is ignored so the callback parameter should take precedence. --- oauth.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/oauth.el b/oauth.el index 0f11389..add2a88 100644 --- a/oauth.el +++ b/oauth.el @@ -198,8 +198,8 @@ oauth headers." (oauth-request-to-header req))) (url-request-method (oauth-request-http-method req))) (cond - (oauth-use-curl (oauth-curl-retrieve (oauth-request-url req))) (async-callback (url-retrieve (oauth-request-url req) async-callback)) + (oauth-use-curl (oauth-curl-retrieve (oauth-request-url req))) (t (url-retrieve-synchronously (oauth-request-url req))))))) (defun oauth-fetch-url (access-token url) -- 1.7.1.87.g94e70