mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-08 11:08:52 +08:00
Don't send response-body for 304 response
This commit is contained in:
@@ -432,7 +432,7 @@ void prepare_status_response(Request *req, SpdyEventHandler *hd,
|
|||||||
const std::string& status)
|
const std::string& status)
|
||||||
{
|
{
|
||||||
int pipefd[2];
|
int pipefd[2];
|
||||||
if(pipe(pipefd) == -1) {
|
if(status == STATUS_304 || pipe(pipefd) == -1) {
|
||||||
hd->submit_response(status, req->stream_id, 0);
|
hd->submit_response(status, req->stream_id, 0);
|
||||||
} else {
|
} else {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
|
|||||||
Reference in New Issue
Block a user