将 HTTP Connection: 字段放在 header 末尾是否存在任何已知问题?
来自标准 ( RFC2616, section 4.2 ):
it is "good practice" to send general-header fields first (which includes
Connection
), followed by request-header or response-header fields, and ending with the entity-header fields.
如果我违反了 Connection
HTTP header 的“良好实践”,我会受到惩罚吗?
最佳答案
这只是“良好实践”,而不是要求。 HTTP 实现需要支持以任何顺序出现的 header 。
关于http-headers - 放置 HTTP 连接的现实问题 : Header at the end,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8651009/