You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
I'd like to chime in and point out that not handling this field causes the body of any request to be incorrectly parsed (since there are 2 newlines separating the content-length header and the body, not only one since the content-type field is present). Any client that sends this field will run into this issue.
Consider the following Python 3 script that starts the server and sends the
initialize
request with theContent-Length
andContent-Type
fields as specified by the protocol:Running this script will output:
The issue is that the code assumes that the header part of a request only contains the
Content-Length
field, which is not the case.The text was updated successfully, but these errors were encountered: