Allow to add Date header to the request.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#include "webcc/message.h"
|
||||
|
||||
#include <ctime>
|
||||
#include <iomanip> // for put_time
|
||||
#include <sstream>
|
||||
|
||||
#include "boost/algorithm/string.hpp"
|
||||
@@ -181,11 +179,4 @@ std::string Message::Dump(std::size_t indent,
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::string Message::GetTimestamp() {
|
||||
std::time_t t = std::time(nullptr);
|
||||
std::stringstream ss;
|
||||
ss << std::put_time(std::gmtime(&t), "%a, %d %b %Y %H:%M:%S") << " GMT";
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
} // namespace webcc
|
||||
|
||||
Reference in New Issue
Block a user