Remove the nested read loops in FastCGIConn, hide complexity inside StreamBuffer
This commit is contained in:
@@ -10,7 +10,6 @@ int main(int argc, char *argv[]) {
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
|
||||
FastCGIServer server(FLAGS_port, [](std::unique_ptr<FastCGIRequest> request) {
|
||||
LOG(INFO) << "request from " << request->GetParam("REMOTE_ADDR");
|
||||
request->Write({{"Content-Type", "text/plain"}}, {"Hello world"});
|
||||
request->WriteEnd();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user