Commit f4539dd2 authored by Geoff Simmons's avatar Geoff Simmons

for response status 204, like 304, set the wantbody flag to false and remove...

for response status 204, like 304, set the wantbody flag to false and remove the Content-Length header
parent 9c490b6c
......@@ -254,7 +254,7 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
/* In ESI mode, we can't know the aggregate length */
http_Unset(req->resp, H_Content_Length);
RFC2616_Weaken_Etag(req->resp);
} else if (req->resp->status == 304) {
} else if (req->resp->status == 204 || req->resp->status == 304) {
http_Unset(req->resp, H_Content_Length);
req->wantbody = 0;
} else if (bo == NULL &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment