Commit aa64a7f7 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Don't send response-body for 304 response

parent d81827c0
......@@ -432,7 +432,7 @@ void prepare_status_response(Request *req, SpdyEventHandler *hd,
const std::string& status)
{
int pipefd[2];
if(pipe(pipefd) == -1) {
if(status == STATUS_304 || pipe(pipefd) == -1) {
hd->submit_response(status, req->stream_id, 0);
} else {
std::stringstream ss;
......
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