I want a server to make a 304 Not Modified response like this:
Response::new()
.with_status(StatusCode::NotModified)
.with_header(ETag(etag))
.with_header(LastModified(last_modified))
My problem is hyper sees the response without body (or without Content-Length) and adds a Transfer-Encoding: chunked to the headers (here's the culprit).
Am I using the API wrong or is this an error on hyper's side?
I want a server to make a
304 Not Modifiedresponse like this:My problem is hyper sees the response without body (or without
Content-Length) and adds aTransfer-Encoding: chunkedto the headers (here's the culprit).Am I using the API wrong or is this an error on hyper's side?