aboutsummaryrefslogtreecommitdiff
path: root/sx-request.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-04 15:21:55 -0500
committerSean Allred <code@seanallred.com>2015-01-04 15:21:55 -0500
commit1b5fd39d84cfc3138c2619631eebe508e7a0c2f9 (patch)
treedc4b74ed834aadc5992e92419f5247eb0408a7a4 /sx-request.el
parentd20f7e140d33b230cdaddd08cc6e2dfe75fd1e2b (diff)
Use symbols for url-request-method
Diffstat (limited to 'sx-request.el')
-rw-r--r--sx-request.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/sx-request.el b/sx-request.el
index b2aee5d..bab53ec 100644
--- a/sx-request.el
+++ b/sx-request.el
@@ -134,7 +134,7 @@ access the response wrapper."
(defun sx-request-make (method &optional args request-method process-function)
"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'.
+this function. REQUEST-METHOD is one of `get' (default) or `post'.
Returns the entire response as processed by PROCESS-FUNCTION.
This defaults to `sx-request-response-get-items'.
@@ -158,7 +158,7 @@ the main content of the response is returned."
(url-inhibit-uncompression t)
(url-request-data (sx-request--build-keyword-arguments args nil))
(request-url (concat sx-request-api-root method))
- (url-request-method request-method)
+ (url-request-method (and request-method (symbol-name request-method)))
(url-request-extra-headers
'(("Content-Type" . "application/x-www-form-urlencoded")))
(response-buffer (url-retrieve-synchronously request-url)))