SN-2067 已核对来源,附原文与上下文。
其他参与者原话gavinandresen原帖 ↗你能更具体地说说哪些 JSON 库不提供 Content-Length 吗?把这个记录下来会很有用。
Can you be more specific about which JSON libraries don't provide Content-Length ? It'd be nice to document that.
我想我们应该试着支持没有 Content-Length 参数的情形。不过我不想推倒重来换掉流处理,哪怕得一个字符一个字符地读。
I guess we should try to support the case where there's no Content-Length parameter. I don't want to rip and replace streams though, even if it has to read one character at a time.
编辑:当然,前提是真的存在不支持 Content-Length 的库。
Edit: That is, assuming there actually are any libraries that don't support Content-Length.