Skip to content

Commit

Permalink
Turn ignoreRequestBody into no-const method
Browse files Browse the repository at this point in the history
As nghttp2 req is passed, it is probable that user implementation,
analyzes data and indexes processing on server cache for
further stage (receive()). Thus, once ignored (or not) the
request body received, the thing is that receive() could be
not repeating again same processing of received data.
  • Loading branch information
testillano committed Jul 9, 2022
1 parent de1112e commit 17cd64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ert/http2comm/Http2Server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class Http2Server
*
* @return Return the boolean about ignoring request body copy. Default implementation returns 'false'.
*/
virtual bool ignoreRequestBody(const nghttp2::asio_http2::server::request& req) const {
virtual bool ignoreRequestBody(const nghttp2::asio_http2::server::request& req) {
return false;
}

Expand Down

0 comments on commit 17cd64f

Please sign in to comment.