diff --git a/src/SpdyServer.cc b/src/SpdyServer.cc index 21fb423c..1ed61e11 100644 --- a/src/SpdyServer.cc +++ b/src/SpdyServer.cc @@ -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;