diff options
author | Sean Allred <code@seanallred.com> | 2015-01-26 07:06:36 -0600 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2015-01-26 07:06:36 -0600 |
commit | a46831ad0d5458c90a9e04dd89b713530747408d (patch) | |
tree | 3ce476ee270c94e140e33ce5a834104eb3d90206 /sx-request.el | |
parent | a2d526c4b12ffa1cece78be7e6bfedf0b2b60576 (diff) | |
parent | 2de9020ac40daedab8ca0df194e8f4eb6ae20478 (diff) |
Merge pull request #241 from vermiculus/make-the-world-right-again
Upcase `post' to `POST' (and `get' to `GET') to fix request errors.
Diffstat (limited to 'sx-request.el')
-rw-r--r-- | sx-request.el | 2 |
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))) |