1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-12-22 07:38:52 -05:00

Don't send response-body for 304 response

This commit is contained in:
Tatsuhiro Tsujikawa 2012-11-18 21:22:08 +09:00
parent d81827c073
commit aa64a7f7f5

View File

@ -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;