Bitcointalk · Authentication, JSON RPC and Python

中本聪,2010 年 8 月 3 日

SN-2067 已核对来源,附原文与上下文。

阅读语言
中文译文

你能更具体地说说哪些 JSON 库不提供 Content-Length 吗?把这个记录下来会很有用。

我想我们应该试着支持没有 Content-Length 参数的情形。不过我不想推倒重来换掉流处理,哪怕得一个字符一个字符地读。

编辑:当然,前提是真的存在不支持 Content-Length 的库。

ORIGINAL · 英文原文
bitcoin requires the Content-Length header, but several JSON-RPC libraries do not provide it.  When the Content-Length header is absent, bitcoin returns 500 Internal Server Error.
Can you be more specific about which JSON libraries don't provide Content-Length ?  It'd be nice to document that.
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.

Edit: That is, assuming there actually are any libraries that don't support Content-Length.
上下文
← 上一条 SN-2067 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2067