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
The http protocol does not honor the Content-Length header field, and instead reads data as much data as a socket provides. This was discovered when the httpd.reb server was using length of a string in codepoints for the Content-Length, instead of the length of the binary encoded UTF-8.
So for instance, the header claimed a content length of 19 when serving the string HighCodepointCat(😺), which is actually 22 bytes in size. However the HTTP read received the full 22 bytes:
The http protocol does not honor the Content-Length header field, and instead reads data as much data as a socket provides. This was discovered when the httpd.reb server was using length of a string in codepoints for the Content-Length, instead of the length of the binary encoded UTF-8.
So for instance, the header claimed a content length of 19 when serving the string
HighCodepointCat(😺)
, which is actually 22 bytes in size. However the HTTP read received the full 22 bytes:The text was updated successfully, but these errors were encountered: