From 2c0bca36d2d1e13aa4ca0a83ef5af1f70bf76b4c Mon Sep 17 00:00:00 2001 From: Jonathan Leech-Pepin Date: Fri, 21 Nov 2014 08:54:20 -0500 Subject: Fix docstring/argument list ordering (mistake during merge). Fix `url-automatic-caching` to use `t` rather than `sx-request-cache-p` (used in tests only). --- sx-request.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sx-request.el') diff --git a/sx-request.el b/sx-request.el index c667978..6b09988 100644 --- a/sx-request.el +++ b/sx-request.el @@ -92,7 +92,8 @@ number of requests left every time it finishes a call." ;;; Making Requests (defun sx-request-make - "Make a request to the API, executing METHOD with ARGS. + (method &optional args request-method) + "Make a request to the API, executing METHOD with ARGS. You should almost certainly be using `sx-method-call' instead of this function. REQUEST-METHOD is one of `GET' (default) or `POST'. @@ -113,8 +114,7 @@ then read with `json-read-from-string'. `sx-request-remaining-api-requests' is updated appropriately and the main content of the response is returned." - (method &optional args request-method) - (let* ((url-automatic-caching sx-request-cache-p) + (let* ((url-automatic-caching t) (url-inhibit-uncompression t) (url-request-data (sx-request--build-keyword-arguments args nil)) -- cgit v1.2.3