Skip to content

Conversation

morimoriysmoon
Copy link

@morimoriysmoon morimoriysmoon commented Nov 14, 2021

According to RFC7230 Section 3.3.2

"A server MUST NOT send a Content-Length header field in any response with a status code of 1xx (Informational) or 204 (No Content). A server MUST NOT send a Content-Length header field in any 2xx (Successful) response to a CONNECT request (Section 4.3.6 of [RFC7231])."

mahongyin pushed a commit to mahongyin/nanohttpd that referenced this pull request Aug 7, 2025
根据RFC7230第3.3.2节规范
服务器绝不能在任何状态码为 1xx(信息性)或 204(无内容)的响应中发送 Content-Length 标头字段。 服务器绝不能在任何 2xx 成功()响应中发送 Content-Length 标头字段到 CONNECT 请求([RFC7231] 第 4.3.6 节)。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant