emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/graphql-mode 83e3a73f21 033/122: Fix: don't add slash betw


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode 83e3a73f21 033/122: Fix: don't add slash between url and query parameters
Date: Sat, 29 Jan 2022 08:03:31 -0500 (EST)

branch: elpa/graphql-mode
commit 83e3a73f217c6eb5d0be99bfbf566b8f014c5da3
Author: Endre Oma <endre.88.oma@gmail.com>
Commit: Endre Oma <endre.88.oma@gmail.com>

    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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]