diff options
author | Alex Vakulenko <avakulenko@google.com> | 2016-03-22 13:50:11 -0700 |
---|---|---|
committer | Alex Vakulenko <avakulenko@google.com> | 2016-03-22 13:53:39 -0700 |
commit | a1d5f07e895c04002c9d57e620734f7ff98d1704 (patch) | |
tree | 293cf23c2b9d91aca2e9dfca8c84b015511bb6bc | |
parent | 29dd1605f71fbbe2f6281f67fa2dcc70737c13c1 (diff) | |
download | webservd-a1d5f07e895c04002c9d57e620734f7ff98d1704.tar.gz |
libwevserv: Forgot one more virtual function in the Response base class
AddHeader must also be virtual to let MockResponse override it.
Change-Id: Id01ca3624a8f65703cab6106954a6395ba28a57b
-rw-r--r-- | libwebserv/response.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libwebserv/response.h b/libwebserv/response.h index c890e72..b0408c4 100644 --- a/libwebserv/response.h +++ b/libwebserv/response.h @@ -40,8 +40,8 @@ class LIBWEBSERV_EXPORT Response { virtual ~Response() = default; // Adds a single HTTP response header to the response. - void AddHeader(const std::string& header_name, - const std::string& value); + virtual void AddHeader(const std::string& header_name, + const std::string& value); // Adds number of HTTP response headers to the response. virtual void AddHeaders( |