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 -2
View File
@@ -98,7 +98,7 @@ std::vector<Header>::iterator Headers::Find(const std::string& key) {
static bool ParseValue(const std::string& str, const std::string& expected_key,
std::string* value) {
std::string key;
if (!SplitKV(str, '=', &key, value)) {
if (!utility::SplitKV(str, '=', &key, value)) {
return false;
}
@@ -182,7 +182,7 @@ bool ContentDisposition::Init(const std::string& str) {
std::string key;
std::string value;
for (std::size_t i = 1; i < parts.size(); ++i) {
if (!SplitKV(parts[i], '=', &key, &value)) {
if (!utility::SplitKV(parts[i], '=', &key, &value)) {
return false;
}