Correctly define the variable `urlNotFoundMsg` and `invalidUrlMsg`.

As we must declare the two variables as `extern` in response.h,
we must define it somewhere (and `response.cpp` is a good place).
This commit is contained in:
Matthieu Gautier 2022-04-01 11:58:57 +02:00
parent 95d4dd63ac
commit feb30d08aa
1 changed files with 2 additions and 2 deletions

View File

@ -109,8 +109,8 @@ std::unique_ptr<ContentResponse> Response::build_404(const InternalServer& serve
return response;
}
extern const UrlNotFoundMsg urlNotFoundMsg;
extern const InvalidUrlMsg invalidUrlMsg;
const UrlNotFoundMsg urlNotFoundMsg;
const InvalidUrlMsg invalidUrlMsg;
std::unique_ptr<ContentResponse> ContentResponseBlueprint::generateResponseObject() const
{