diff options
Diffstat (limited to 'src/lib/util/server_http_impl.hpp')
-rw-r--r-- | src/lib/util/server_http_impl.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/util/server_http_impl.hpp b/src/lib/util/server_http_impl.hpp index e949e6b2483..7de440bce2c 100644 --- a/src/lib/util/server_http_impl.hpp +++ b/src/lib/util/server_http_impl.hpp @@ -63,10 +63,10 @@ namespace webpp { } } public: - virtual Response& status(int number) { m_ostream << statusToString(number); return *this; } - virtual void type(std::string str) { m_header << "Content-Type: "<< str << "\r\n"; } - virtual void send(std::string str) { m_ostream << m_header.str() << "Content-Length: " << str.length() << "\r\n\r\n" << str; } - virtual size_t size() const { return m_streambuf.size(); } + virtual Response& status(int number) override { m_ostream << statusToString(number); return *this; } + virtual void type(std::string str) override { m_header << "Content-Type: "<< str << "\r\n"; } + virtual void send(std::string str) override { m_ostream << m_header.str() << "Content-Length: " << str.length() << "\r\n\r\n" << str; } + virtual size_t size() const override { return m_streambuf.size(); } std::shared_ptr<socket_type> socket() { return m_socket; } /// If true, force server to close the connection after the response have been sent. |