Allow to add Date header to the request.

This commit is contained in:
Chunting Gu
2019-06-06 13:32:46 +08:00
parent 7af95778f5
commit 22b209d13e
17 changed files with 53 additions and 34 deletions
+4 -2
View File
@@ -1,12 +1,14 @@
#include "webcc/response.h"
#include "webcc/utility.h"
namespace webcc {
void Response::Prepare() {
PrepareStatusLine();
SetHeader(headers::kServer, UserAgent());
SetHeader(headers::kDate, GetTimestamp());
SetHeader(headers::kServer, utility::UserAgent());
SetHeader(headers::kDate, utility::GetTimestamp());
Message::Prepare();
}