mirror of
https://github.com/open-goal/opengoal-vscode.git
synced 2024-10-20 12:57:36 -04:00
15 lines
872 B
Diff
15 lines
872 B
Diff
|
diff --git a/node_modules/vscode-jsonrpc/lib/common/messageReader.js b/node_modules/vscode-jsonrpc/lib/common/messageReader.js
|
||
|
index 99e3dea..c8fc01c 100644
|
||
|
--- a/node_modules/vscode-jsonrpc/lib/common/messageReader.js
|
||
|
+++ b/node_modules/vscode-jsonrpc/lib/common/messageReader.js
|
||
|
@@ -136,6 +136,9 @@ class ReadableStreamMessageReader extends AbstractMessageReader {
|
||
|
}
|
||
|
const contentLength = headers.get('content-length');
|
||
|
if (!contentLength) {
|
||
|
+ const bodyBuffer = this.buffer.tryReadBody(this.buffer._totalLength);
|
||
|
+ const bodyString = bodyBuffer.toString();
|
||
|
+ console.log(`[LSP Debug] ERROR: Body - ${bodyString}`);
|
||
|
this.fireError(new Error('Header must provide a Content-Length property.'));
|
||
|
return;
|
||
|
}
|