summaryrefslogtreecommitdiffstats
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index c1602c3d83..acf7ac57cf 100644
--- a/src/json.c
+++ b/src/json.c
@@ -103,9 +103,10 @@ json_encode_lsp_msg(typval_T *val)
ga_append(&ga, NUL);
ga_init2(&lspga, 1, 4000);
+ // Header according to LSP specification.
vim_snprintf((char *)IObuff, IOSIZE,
"Content-Length: %u\r\n"
- "Content-Type: application/vim-jsonrpc; charset=utf-8\r\n\r\n",
+ "Content-Type: application/vscode-jsonrpc; charset=utf-8\r\n\r\n",
ga.ga_len - 1);
ga_concat(&lspga, IObuff);
ga_concat_len(&lspga, ga.ga_data, ga.ga_len);