[是否需要功能请求?] 支持 Transfer-Encoding chunked 但没有 Content-Length
作者: krissss创建于 2025年8月25日更新于 2025年8月25日
Currently, when uploading stream data of unknown size, the server returns a 400 error (HTTP/1.1 400 Bad Request\r\nContent-Length: 0\r\n\r\n). The reason for this is that the code has a restriction that the header must contain a Content-Length (in `Workerman\Protocols\Http::input`). However, when uploading data of unknown size, using only Transfer-Encoding: chunked is in accordance with the standard. We hope to support this.
内容来源: walkor/workerman