branch: elpa/graphql-mode
commit 2326c1fb185c89b05ad617bc71e1171d97d32ebd
Merge: 14bbd1917e 83e3a73f21
Author: David Vázquez Púa <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #7 from eoma/fix-url
Fix: don't add slash between url and query parameters
---
graphql-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index a198b1df1e..e56a7bf16e 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -63,7 +63,7 @@
"Send QUERY to the server at `graphql-url' and return the
response from the server."
(let ((url-request-method "POST")
- (url (format "%s/?query=%s" graphql-url (url-encode-url query))))
+ (url (format "%s?query=%s" graphql-url (url-encode-url query))))
(with-current-buffer (url-retrieve-synchronously url t)
(goto-char (point-min))
(search-forward "\n\n")