diff options
author | Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com> | 2014-11-21 08:54:20 -0500 |
---|---|---|
committer | Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com> | 2014-11-21 08:54:20 -0500 |
commit | 2c0bca36d2d1e13aa4ca0a83ef5af1f70bf76b4c (patch) | |
tree | fae1d3b8e687204158ad64c11833639c11cd3f15 /sx-request.el | |
parent | 91069a3b2fe9b800436c603f94186c2e34a212ac (diff) |
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).
Diffstat (limited to 'sx-request.el')
-rw-r--r-- | sx-request.el | 6 |
1 files changed, 3 insertions, 3 deletions
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)) |