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

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

[elpa] externals/eglot 47b957d 65/69: Let's not send Content-type for no


From: João Távora
Subject: [elpa] externals/eglot 47b957d 65/69: Let's not send Content-type for now.
Date: Fri, 22 Jun 2018 11:55:05 -0400 (EDT)

branch: externals/eglot
commit 47b957dadd06c0dd3c692079def786e65bc2d452
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Let's not send Content-type for now.
    
    The LSP servers Eglot works with hate it
    
    * jsonrpc.el (jsonrpc-connection-send): Don't send Content-type.
---
 jsonrpc.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/jsonrpc.el b/jsonrpc.el
index 0205015..caf46af 100644
--- a/jsonrpc.el
+++ b/jsonrpc.el
@@ -439,7 +439,8 @@ connection object, called when the process dies .")
           (json (jsonrpc--json-encode message))
           (headers
            `(("Content-Length" . ,(format "%d" (string-bytes json)))
-             ("Content-Type" . "application/vscode-jsonrpc; charset=utf-8"))))
+             ;; ("Content-Type" . "application/vscode-jsonrpc; charset=utf-8")
+             )))
     (process-send-string
      (jsonrpc--process connection)
      (cl-loop for (header . value) in headers



reply via email to

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