aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-10-23 12:21:12 +0200
committermousebot <mousebot@riseup.net>2021-10-23 12:21:12 +0200
commit21e22bea31da362e3673cbcc4a7ccd3fe67149ed (patch)
treea9632b9aea0eaf670a7de61ce8337f635707c1bd
parent117e4f8675a6ac96534350fb3dfc97abf8a70c39 (diff)
remove wrongly set http--timeout
- http--timeout was given as an 4th arg to url-retrieve, which has nothing to do with timeouts, but is whether to be silent or not. - timeout arg only exists for url-retrieve-synchronously
-rw-r--r--lisp/mastodon-http.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index f092a2d..95e8bf5 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -223,7 +223,7 @@ Pass response buffer to CALLBACK function with args CBARGS."
(url-request-extra-headers
`(("Authorization" . ,(concat "Bearer "
(mastodon-auth--access-token))))))
- (url-retrieve url callback cbargs mastodon-http--timeout)))
+ (url-retrieve url callback cbargs)))
(defun mastodon-http--get-json-async (url &optional callback &rest args)
"Make GET request to URL. Call CALLBACK with json-vector and ARGS."
@@ -251,7 +251,7 @@ Authorization header is included by default unless UNAUTHENTICED-P is non-nil."
(append `(("Authorization" . ,(concat "Bearer " (mastodon-auth--access-token))))
headers)))
(with-temp-buffer
- (url-retrieve url callback cbargs mastodon-http--timeout))))
+ (url-retrieve url callback cbargs))))
;; TODO: test for curl first?
(defun mastodon-http--post-media-attachment (url filename caption)