From: Marcin Siodelski Date: Mon, 19 Dec 2016 13:41:56 +0000 (+0100) Subject: [5077] Addressed two additional review comments. X-Git-Tag: trac5088_base~5^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31594fda8150fae6b0bbdeecdfa0162629d8b407;p=thirdparty%2Fkea.git [5077] Addressed two additional review comments. - Type cast to char, rather than uint8_t - Return tag in the doxygen documentation --- diff --git a/src/lib/http/request.h b/src/lib/http/request.h index a535f45410..e60e1e7314 100644 --- a/src/lib/http/request.h +++ b/src/lib/http/request.h @@ -78,6 +78,8 @@ public: /// /// This method is called by the @ref HttpRequestParser to retrieve the /// context in which parsed data is stored. + /// + /// @return Pointer to the underlying @ref HttpRequestContext. const HttpRequestContextPtr& context() const { return (context_); } diff --git a/src/lib/http/request_parser.cc b/src/lib/http/request_parser.cc index 0968acd7fd..1e2847c03f 100644 --- a/src/lib/http/request_parser.cc +++ b/src/lib/http/request_parser.cc @@ -97,8 +97,8 @@ HttpRequestParser::postBuffer(const void* buf, const size_t buf_size) { if (getNextEvent() == NEED_MORE_DATA_EVT) { transition(getCurrState(), MORE_DATA_PROVIDED_EVT); } - buffer_.insert(buffer_.end(), static_cast(buf), - static_cast(buf) + buf_size); + buffer_.insert(buffer_.end(), static_cast(buf), + static_cast(buf) + buf_size); } }