diff --git a/Jupiter/HTTP_Server.cpp b/Jupiter/HTTP_Server.cpp index 0623cff..ca99e8a 100644 --- a/Jupiter/HTTP_Server.cpp +++ b/Jupiter/HTTP_Server.cpp @@ -501,10 +501,11 @@ int Jupiter::HTTP::Server::Data::process_request(HTTPSession &session) break; } + result += "Date: "_jrs; char *time_header = html_time(); - result += "Date: "_jrs ENDL; result += time_header; delete[] time_header; + result += ENDL; result += "Server: "_jrs JUPITER_VERSION ENDL; @@ -529,11 +530,12 @@ int Jupiter::HTTP::Server::Data::process_request(HTTPSession &session) if (content->language != nullptr) { - result += "Content-Language"_jrs; + result += "Content-Language: "_jrs; result += *content->language; + result += ENDL; } - result += ENDL ENDL; + result += ENDL; if (command == HTTPCommand::GET) result += *content_result; diff --git a/Jupiter/Readable_String.h b/Jupiter/Readable_String.h index 8529de0..3db431f 100644 --- a/Jupiter/Readable_String.h +++ b/Jupiter/Readable_String.h @@ -395,6 +395,11 @@ namespace Jupiter template class R> static typename Jupiter::Readable_String::template TokenizeResult tokenize(const Jupiter::Readable_String &in, const Jupiter::Readable_String &separator); template class R> static typename Jupiter::Readable_String::template TokenizeResult tokenize(const Jupiter::Readable_String &in, const T *separator, size_t separator_size); + /** + * @brief Destructor for the Readable_String class. + */ + virtual ~Readable_String() = default; + /** Access operator */ inline const T &operator[](size_t index) const { return this->get(index); }; diff --git a/Jupiter/String_Type.h b/Jupiter/String_Type.h index da35d96..4b176e1 100644 --- a/Jupiter/String_Type.h +++ b/Jupiter/String_Type.h @@ -292,6 +292,11 @@ namespace Jupiter * A conversion constructor for Jupiter::DataBuffer */ + /** + * @brief Destructor for the String_Type class. + */ + virtual ~String_Type() = default; + protected: T *str; /** Pointer for the underlying string of elements */ size_t length; /** Number of representable elements in the string */ diff --git a/Release/Jupiter.lib b/Release/Jupiter.lib index eef1375..dcb3a40 100644 Binary files a/Release/Jupiter.lib and b/Release/Jupiter.lib differ