-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Hi,
Currently python-jsonrpc-server requires the Content-Length header to be sent first. I guess the following snippet is causing the issue:
content_length = self._content_length(line)
# Blindly consume all header lines
while line and line.strip():
line = self._rfile.readline()
I think it would be good to allow reading headers in any order. The LSP specification doesn't mention anything about order, even though it is listed in one, leaving it a bit open for interpretation.
Let me know if you would like a PR with a suggestion for a fix (assuming you agree with my conclusion that is).
Regards
Metadata
Metadata
Assignees
Labels
No labels