7e2684d77930f8b06c3c085691e5c50202d06633
The client may wait for the server to close the connection or for timeout to occur in some cases. This commit changes it to always set Content-Length field in non-100/204 responses regardless of whether the body is empty. Although it doesn't cover all the patterns where the response must not set it, users can remove it by calling `set_content_length(None)`. Signed-off-by: Takahiro Itazuri <itazur@amazon.com>
micro-http
This is a minimal implementation of the HTTP/1.0 and HTTP/1.1 protocols. This HTTP implementation is stateless thus it does not support chunking or compression.
The micro-http implementation is used in production by Firecracker.
As micro-http uses std::os::unix this crates only supports Unix-like targets.
Contributing
To contribute to micro-http, checkout the contribution guidelines.
Releases
New micro-http versions are released via the GitHub repository releases page. A history of changes is recorded in our changelog.
Policy for Security Disclosures
If you suspect you have uncovered a vulnerability, contact us privately, as outlined in our security policy document; we will immediately prioritize your disclosure.
Description
Languages
Rust
100%