Browse Source

The destructors in Readable_String and String_Type are now declared as virtual.

Corrected some missing/extra end-lines in the HTTP response header.
release/0.19
Jessica James 9 years ago
parent
commit
ba1dc2c0ba
  1. 8
      Jupiter/HTTP_Server.cpp
  2. 5
      Jupiter/Readable_String.h
  3. 5
      Jupiter/String_Type.h
  4. BIN
      Release/Jupiter.lib

8
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;

5
Jupiter/Readable_String.h

@ -395,6 +395,11 @@ namespace Jupiter
template<template<typename> class R> static typename Jupiter::Readable_String<T>::template TokenizeResult<R> tokenize(const Jupiter::Readable_String<T> &in, const Jupiter::Readable_String<T> &separator);
template<template<typename> class R> static typename Jupiter::Readable_String<T>::template TokenizeResult<R> tokenize(const Jupiter::Readable_String<T> &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); };

5
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 */

BIN
Release/Jupiter.lib

Binary file not shown.
Loading…
Cancel
Save