1
Fork 0

Drop obsolete comments

This commit is contained in:
Drew DeVault 2023-02-11 17:19:26 +01:00
parent 946c985a02
commit 8edf406c52

View file

@ -29,17 +29,12 @@ export fn do(client: *client, req: *request) (response | error) = {
uri::fmt(&file, &target)?; uri::fmt(&file, &target)?;
fmt::fprintf(&file, " HTTP/1.1\r\n")?; fmt::fprintf(&file, " HTTP/1.1\r\n")?;
// TODO: Handle Content-Length and Transfer-Encoding chunked/gzip
// properly
write_header(&file, &req.header)?; write_header(&file, &req.header)?;
fmt::fprintf(&file, "\r\n")?; fmt::fprintf(&file, "\r\n")?;
bufio::flush(&file)?; bufio::flush(&file)?;
match (req.body) { match (req.body) {
case let body: io::handle => case let body: io::handle =>
// Copy to conn directly so we can use sendfile(2) if
// appropriate
io::copy(conn, body)?; io::copy(conn, body)?;
case void => case void =>
yield; yield;