summaryrefslogtreecommitdiff
path: root/src/HttpServer.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-01-16 17:52:18 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-01-16 17:52:18 +0900
commitb2f27e6548ec5f13a0f5776612cb512cb0d30d4e (patch)
tree122e2f32f2e899924d746e73bc442172fc1a7d8c /src/HttpServer.h
parente60181d1ad73ef2ca873d8d2ba0e13a932f0751a (diff)
Check !SocketRecvBuffer::bufferEmpty() in ctor.
Also treat !SocketRecvBuffer::bufferEmpty() as data is available.
Diffstat (limited to 'src/HttpServer.h')
-rw-r--r--src/HttpServer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/HttpServer.h b/src/HttpServer.h
index 2845631a..cdd1e40e 100644
--- a/src/HttpServer.h
+++ b/src/HttpServer.h
@@ -116,6 +116,11 @@ public:
void disableGZip() { gzip_ = false; }
uint64_t getContentLength() const { return lastContentLength_; }
+
+ const SharedHandle<SocketRecvBuffer>& getSocketRecvBuffer() const
+ {
+ return socketRecvBuffer_;
+ }
};
} // namespace aria2