Commit d3fa938f authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpd: Fix compiler warning

parent 9683f88e
......@@ -1060,7 +1060,10 @@ void prepare_status_response(Stream *stream, Http2Handler *hd,
gzclose(write_fd);
headers.emplace_back("content-encoding", "gzip");
} else {
write(pipefd[1], body.c_str(), body.size());
auto rv = write(pipefd[1], body.c_str(), body.size());
if(rv != static_cast<ssize_t>(body.size())) {
std::cerr << "Could not write all response body: " << rv << std::endl;
}
}
close(pipefd[1]);
......
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