aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-26 07:06:36 -0600
committerSean Allred <code@seanallred.com>2015-01-26 07:06:36 -0600
commita46831ad0d5458c90a9e04dd89b713530747408d (patch)
tree3ce476ee270c94e140e33ce5a834104eb3d90206
parenta2d526c4b12ffa1cece78be7e6bfedf0b2b60576 (diff)
parent2de9020ac40daedab8ca0df194e8f4eb6ae20478 (diff)
Merge pull request #241 from vermiculus/make-the-world-right-again
Upcase `post' to `POST' (and `get' to `GET') to fix request errors.
-rw-r--r--sx-request.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-request.el b/sx-request.el
index 2650c55..8f672ec 100644
--- a/sx-request.el
+++ b/sx-request.el
@@ -160,7 +160,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 (and request-method (symbol-name request-method)))
+ (url-request-method (and request-method (upcase (symbol-name request-method))))
(url-request-extra-headers
'(("Content-Type" . "application/x-www-form-urlencoded")))
(response-buffer (url-retrieve-synchronously request-url)))