branch: elpa/graphql-mode
commit 83e3a73f217c6eb5d0be99bfbf566b8f014c5da3
Author: Endre Oma <[email protected]>
Commit: Endre Oma <[email protected]>
Fix: don't add slash between url and query parameters
Some graphql endpoints only expose example.com/graphql,
not example.com/graphql/
---
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")