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
+2 -1
View File
@@ -3,6 +3,7 @@
#include "webcc/base64.h"
#include "webcc/logger.h"
#include "webcc/url.h"
#include "webcc/utility.h"
namespace webcc {
@@ -124,7 +125,7 @@ ResponsePtr ClientSession::Patch(const std::string& url, std::string&& data,
void ClientSession::InitHeaders() {
using namespace headers;
headers_.Set(kUserAgent, UserAgent());
headers_.Set(kUserAgent, utility::UserAgent());
// Content-Encoding Tokens:
// (https://en.wikipedia.org/wiki/HTTP_compression)