diff options
Diffstat (limited to 'src/HttpServer.cc')
| -rw-r--r-- | src/HttpServer.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/HttpServer.cc b/src/HttpServer.cc index bdfc093c..d94da365 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -61,7 +61,7 @@ HttpServer::HttpServer(const std::shared_ptr<SocketCore>& socket) : socket_(socket), socketRecvBuffer_(new SocketRecvBuffer(socket_)), socketBuffer_(socket), - headerProcessor_(new HttpHeaderProcessor + headerProcessor_(make_unique<HttpHeaderProcessor> (HttpHeaderProcessor::SERVER_PARSER)), lastContentLength_(0), bodyConsumed_(0), @@ -382,6 +382,11 @@ std::string HttpServer::createQuery() const } } +DiskWriter* HttpServer::getBody() const +{ + return lastBody_.get(); +} + bool HttpServer::supportsPersistentConnection() const { return keepAlive_ && |
